【发布时间】:2015-04-28 03:02:12
【问题描述】:
我看过很多关于 ssh 权限被拒绝的帖子,但我仍然一无所知。
debug3: send_pubkey_test
debug2: we sent a publickey packet, wait for reply
debug1: Authentications that can continue: publickey,keyboard-interactive
debug1: Trying private key: /home/siddharthan/.ssh/id_rsa
debug3: no such identity: /home/siddharthan/.ssh/id_rsa: No such file or directory
debug1: Trying private key: /home/siddharthan/.ssh/id_dsa
debug3: no such identity: /home/siddharthan/.ssh/id_dsa: No such file or directory
debug1: Trying private key: /home/siddharthan/.ssh/id_ecdsa
debug3: no such identity: /home/siddharthan/.ssh/id_ecdsa: No such file or directory
debug2: we did not send a packet, disable method
debug3: authmethod_lookup keyboard-interactive
debug3: remaining preferred: password
debug3: authmethod_is_enabled keyboard-interactive
debug1: Next authentication method: keyboard-interactive
debug2: userauth_kbdint
debug2: we sent a keyboard-interactive packet, wait for reply
debug1: Authentications that can continue: publickey,keyboard-interactive
debug3: userauth_kbdint: disable: no info_req_seen
debug2: we did not send a packet, disable method
debug1: No more authentication methods to try.
Permission denied (publickey,keyboard-interactive).
从上面我可以说它正在.ssh 文件夹中搜索私钥。但是在下面的sn-p中,很明显各个文件都在.ssh文件夹下。
total 12
-rw-r--r-- 1 siddharthan siddharthan 751 Apr 27 17:40 keyforHpc
-rw-r--r-- 1 siddharthan siddharthan 606 Apr 27 17:40 keyforHpc.pub
-rw-r--r-- 1 siddharthan siddharthan 222 Apr 27 19:29 known_hosts
我已经使用了大约一个月,今天我才开始遇到这个问题。谁能给点建议?
【问题讨论】:
-
即使文件夹中存在 pvt 密钥,您也必须验证另一端的公钥。缺少任何一个都可能导致问题。
-
您文件上的时间戳表明它今天已重命名,而
ssh不知道要查找名为keyforHpc的文件。 -
也许您收到
No such file or directory是因为尝试访问密钥的应用程序无权访问它们?密钥权限非常严格(-rw-r--r--),什么用户试图访问它们? -
您是否检查过主驱动器上的剩余空间。我曾经在全驱动时遇到过这个问题。