我用我的公钥设置了一个服务器,并将我的私钥添加到 putty 允许我正确连接到服务器。但是,当我使用选美时,它不起作用。我的研究表明,运行选美的事件日志应该类似于:
....
Pageant is running. Requesting keys.
Pageant has X SSH-2 keys
Trying Pageant key #0
....
但是,我的事件日志看起来像
...
Pageant is running. Requesting keys.
...
似乎选美没有响应腻子的关键请求。在这方面的任何帮助将不胜感激。
谢谢
最佳答案
好像你有一个像这个人一样配置的默认私钥
然后它可以破坏选美 key ,它根本不会尝试使用它们!plink -v root@xx.xx.xx.xx
失败
Reading private key file "D:\.ssh\id_rsa.ppk"
Pageant is running. Requesting keys.
Pageant has 1 SSH-2 keys
Configured key file not in Pageant
Using username "root".
Offered public key
Server refused our key
Server refused our key
plink -v -i x root@xx.xx.xx.xx
禁用默认键Unable to use key file "x" (unable to open file)
Pageant is running. Requesting keys.
Pageant has 1 SSH-2 keys
Using username "root".
Trying Pageant key #0
Authenticating with public key "key.pem" from agent
您需要查看 Trying Pageant key #0, #1 ,#2 等
关于putty - 选美似乎有干扰,根本不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5586199/