リモートのコンピュータ(windows2003server)にクライアント(HU-UX)からsshを利用して自動実行したいのですが、どうしてもパスワードを聞かれてしまいます。
クライアント側
# ssh -v
OpenSSH_3.7, SSH protocols 1.5/2.0, OpenSSL 0.9.7c 30 Sep 2003
サーバ側
C:\Documents and Settings\Administrator>ssh -v
OpenSSH_3.8.1p1, OpenSSL 0.9.7d 17 Mar 2004
手順は
クライアント側
# ssh-keygen -t rsa1
下記が作成される
秘密鍵: ~/.ssh/id_dsa
公開鍵: ~/.ssh/id_dsa.pub
id_dsa.pubをリモート側の~/.sshに転送する。
リモート側
id_dsa.pubをauthorized_keysに追加する。
以上です。
No.1ベストアンサー
- 回答日時:
PubkeyAuthentication をYESにしていないからでは?
設定変更後はリスタートする必要があります。
この回答への補足
sshd_configのPubkeyAuthentication をYESにして、sshdを再起動しましたが、以下のメッセージが出て症状が変わりませんでした。
% ssh -v testuser@xx.xx.xx.xxx
・
・
・
Use of this computer system, authorized or unauthorized, constitutes consent
to monitoring of this system. Unauthorized use may subject you to criminal
prosecution. Evidence of unadebug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Offering public key: /home/testuser/.ssh/id_rsa
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Trying private key: /home/testuser/.ssh/id_dsa
debug1: Next authentication method: keyboard-interactive
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Next authentication method: password
testuser@xx.xx.xx.xxx's password:
公開キーが正常に作られていないのでしょうか??
お探しのQ&Aが見つからない時は、教えて!gooで質問しましょう!
おすすめ情報
- ・漫画をレンタルでお得に読める!
- ・人生のプチ美学を教えてください!!
- ・10秒目をつむったら…
- ・あなたの習慣について教えてください!!
- ・牛、豚、鶏、どれか一つ食べられなくなるとしたら?
- ・【大喜利】【投稿~9/18】 おとぎ話『桃太郎』の知られざるエピソード
- ・街中で見かけて「グッときた人」の思い出
- ・「一気に最後まで読んだ」本、教えて下さい!
- ・幼稚園時代「何組」でしたか?
- ・激凹みから立ち直る方法
- ・1つだけ過去を変えられるとしたら?
- ・【あるあるbot連動企画】あるあるbotに投稿したけど採用されなかったあるある募集
- ・【あるあるbot連動企画】フォロワー20万人のアカウントであなたのあるあるを披露してみませんか?
- ・映画のエンドロール観る派?観ない派?
- ・海外旅行から帰ってきたら、まず何を食べる?
- ・誕生日にもらった意外なもの
- ・天使と悪魔選手権
- ・ちょっと先の未来クイズ第2問
- ・【大喜利】【投稿~9/7】 ロボットの住む世界で流行ってる罰ゲームとは?
- ・推しミネラルウォーターはありますか?
- ・都道府県穴埋めゲーム
- ・この人頭いいなと思ったエピソード
- ・準・究極の選択
デイリーランキングこのカテゴリの人気デイリーQ&Aランキング
-
エクセルで最後の文字だけ置き...
-
SQLサーバから、項目の属性(型...
-
エクセルの関数について教えて...
-
DB設計について
-
カンマ区切りの文字列を検索する
-
WHERE id = ? について
-
マイクラPC版のコマンドで効率...
-
副問合せの書き方について
-
sqlで、600行あるテーブルを100...
-
LEFT JOIN と GROUP BY
-
グループ毎にある列の最大値の...
-
エラー 1068 (42000): 複数の主...
-
accessのチェックボックスをSQL...
-
Mysqlでunionを使った検索速度...
-
複数テーブルのGROUP BY の使い...
-
SELECT文で片方のテーブルを優...
-
MySQLで半角濁音文字の検索
-
ストアドのエラーについて
-
SQLにて特定の文字を除いた検索...
-
Unionした最後にGROUP BYを追加...
マンスリーランキングこのカテゴリの人気マンスリーQ&Aランキング
-
エクセルで最後の文字だけ置き...
-
エクセルの関数について教えて...
-
VIEWの元のテーブルのindexって...
-
副問合せの書き方について
-
select文のwhere句に配列を入れ...
-
マイクラPC版のコマンドで効率...
-
SQLサーバから、項目の属性(型...
-
エラー 1068 (42000): 複数の主...
-
[MySQL] 3つのテーブルの結合で...
-
Access パラメータクエリをcsv...
-
SQLにて特定の文字を除いた検索...
-
SQL Left Join で重複を排除す...
-
ストアドのエラーについて
-
Unionした最後にGROUP BYを追加...
-
バインド変数について
-
PL/SQLの変数について
-
sqlで、600行あるテーブルを100...
-
WordpressのContact form 7でzi...
-
selectした大量データをinsert...
-
inner joinをすると数がおかし...
おすすめ情報