2013-01-29 20:24:19 +0000 2013-01-29 20:24:19 +0000
36
36
Advertisement

SSH Permission denied on Correct Password Authentication

Advertisement

昨日、私のマシンに今日使っているのと全く同じ認証情報でSSHすることに成功しました。マシンはCentos 6.3を実行しています。しかし、今は何かの理由でパーミッションが拒否されています。ここに、-vのプリントアウト、sshd_config、sshd_configファイルがあります。

$ ssh -vg -L 3333:localhost:6666 misfitred@devilsmilk
OpenSSH_6.1p1, OpenSSL 1.0.1c 10 May 2012
debug1: Reading configuration data /etc/ssh_config
debug1: Connecting to devilsmilk [10.0.10.113] port 22.
debug1: Connection established.
debug1: identity file /home/kgraves/.ssh/id_rsa type -1
debug1: identity file /home/kgraves/.ssh/id_rsa-cert type -1
debug1: identity file /home/kgraves/.ssh/id_dsa type -1
debug1: identity file /home/kgraves/.ssh/id_dsa-cert type -1
debug1: identity file /home/kgraves/.ssh/id_ecdsa type -1
debug1: identity file /home/kgraves/.ssh/id_ecdsa-cert type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_6.1
debug1: match: OpenSSH_6.1 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.1
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-md5 none
debug1: kex: client->server aes128-ctr hmac-md5 none
debug1: sending SSH2_MSG_KEX_ECDH_INIT
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ECDSA de:1c:37:d7:84:0b:f8:f9:5e:da:11:49:57:4f:b8:f1
debug1: Host 'devilsmilk' is known and matches the ECDSA host key.
debug1: Found key in /home/kgraves/.ssh/known_hosts:1
debug1: ssh_ecdsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: Roaming not allowed by server
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password,keyboard-interacti ve
debug1: Next authentication method: publickey
debug1: Trying private key: /home/kgraves/.ssh/id_rsa
debug1: Trying private key: /home/kgraves/.ssh/id_dsa
debug1: Trying private key: /home/kgraves/.ssh/id_ecdsa
debug1: Next authentication method: keyboard-interactive
debug1: Authentications that can continue: publickey,password,keyboard-interacti ve
debug1: Next authentication method: password
misfitred@devilsmilk's password:
debug1: Authentications that can continue: publickey,password,keyboard-interacti ve
Permission denied, please try again.
misfitred@devilsmilk's password:
debug1: Authentications that can continue: publickey,password,keyboard-interacti ve
Permission denied, please try again.
misfitred@devilsmilk's password:
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: No more authentication methods to try.
Permission denied (publickey,password,keyboard-interactive).

ここに、devilsmilkのsshd_configファイルがあります。

Advertisement
Advertisement

回答 (3)

39
39
39
2013-01-30 14:02:22 +0000

サーバの /etc/ssh/sshd_config:

  1. パスワード認証を有効にするには、コメントを外してください。2. root ログインを有効にするには、コメントを外して

  2. ssh 鍵ログインを有効にするには、アンコメント

(1)だと思います。

12
12
12
2013-01-30 16:12:11 +0000

私はそれを考え出しました。最後の土壇場の努力として、ドメイン名の代わりにIPアドレスを使ってサーバにsshするつもりでした。

サーバを作成したときに、サーバに静的な IP アドレスを設定するのを忘れていたことが判明しました。そこで、サーバに静的IPアドレスを設定し、新しいIPアドレスでAレコードを更新してみたところ、問題なく動作しました。

0
Advertisement
0
0
2015-12-16 15:25:22 +0000
Advertisement

sshd サービスを再起動してみてください。

Advertisement

関連する質問

19
12
8
5
5
Advertisement
Advertisement