プロが教える店舗&オフィスのセキュリティ対策術

リモートのコンピュータ(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に追加する。

以上です。

A 回答 (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:

公開キーが正常に作られていないのでしょうか??

補足日時:2007/10/04 13:50
    • good
    • 0
この回答へのお礼

ありがとうございます。
上記設定でもうまくいきませんでした。
rshを利用して会費しました

お礼日時:2008/02/03 17:27

お探しのQ&Aが見つからない時は、教えて!gooで質問しましょう!