ssh进入AWS弹出钥匙串

时间:2016-06-21 05:05:39

标签: ubuntu amazon-web-services ssh amazon-ec2

有一个EC2实例,我的同事可以在其中输入。当我尝试ssh进入它时,它会在我的Mac OSX上弹出钥匙串密码。 Keychain pop up

我跟进了这篇文章的解决方案 https://apple.stackexchange.com/questions/18458/password-dialog-appears-when-ssh-private-key-permissions-are-set-to-0600
不适合我。 这是我正在使用的ssh命令

ssh -i "mb_primary.pem" ubuntu@ec2-xx-xx-xx-xx.us-west-2.compute.amazonaws.com  

我已经跑过了 chmod 400 mb_primary.pem
我也检查了私钥。
当我尝试ssh到实例

时会发生这种情况
debug1: Found key in /Users/adityashukla/.ssh/known_hosts:17  
debug1: SSH2_MSG_NEWKEYS sent  
debug1: expecting SSH2_MSG_NEWKEYS  
debug1: SSH2_MSG_NEWKEYS received  
debug1: SSH2_MSG_SERVICE_REQUEST sent  
debug1: SSH2_MSG_SERVICE_ACCEPT received  
debug1: Authentications that can continue: publickey  
debug1: Next authentication method: publickey  
debug1: Offering RSA public key: /Users/adityashukla/.ssh/id_rsa  
debug1: Authentications that can continue: publickey  
debug1: Trying private key: mb_primary.pem  
debug1: No more authentication methods to try.  
Permission denied (publickey).   

在最后一个声明之前,"它会弹出钥匙串,如图所示。

0 个答案:

没有答案