无法使用公钥/私钥连接plink

时间:2012-01-11 16:24:03

标签: ssh putty plink

我可以使用我的公钥/私钥与Putty连接,而不会被提示输入密码(或密码)。我在后台运行选美。

然而,尝试连接plink将无法工作(形成相同的Windows机器):( ...它告诉我该密钥被服务器拒绝:( ..请参阅下面的输出。

知道为什么吗?

C:\Windows\System32>plink -v -agent -i C:\Users\ed\.ssh\id_rsa.pkk ed@bla.nl
Looking up host "bla.nl"
Connecting to 82.94.165.254 port 22
Server version: SSH-2.0-OpenSSH_4.3
Using SSH protocol version 2
We claim version: SSH-2.0-PuTTY_Release_0.62
Doing Diffie-Hellman group exchange
Doing Diffie-Hellman key exchange with hash SHA-1
Host key fingerprint is:
ssh-rsa 2048 83:15:11:84:8f:d8:f9:3a:16:b0:e4:8d:ef:4c:18:c4
Initialised AES-256 SDCTR client->server encryption
Initialised HMAC-SHA1 client->server MAC algorithm
Initialised AES-256 SDCTR server->client encryption
Initialised HMAC-SHA1 server->client MAC algorithm
Reading private key file "C:\Users\ed\.ssh\id_rsa.pkk"
Unable to use this key file (unable to open file)
Unable to use key file "C:\Users\ed\.ssh\id_rsa.pkk" (unable to open file)
Pageant is running. Requesting keys.
Pageant has 1 SSH-2 keys
Using username "ed".
Trying Pageant key #0
Server refused our key
Using SSPI from SECUR32.DLL
Attempting GSSAPI authentication
GSSAPI authentication request refused
ed@bla.nl's password:

1 个答案:

答案 0 :(得分:4)

第一条错误消息显示它找不到您尝试传递的密钥文件。问题可能是名称以.ppk结尾,而不是.pkk?

相关问题