2
我使用bitami AMI創建了一個EC2實例。我使用EC2-插件密鑰對公用事業權限被拒絕(publickey)with bitami AMI&EC2
創建EC2密鑰對,當我試圖ssh -i id_rsa-my-keypair [email protected]<myinstance> -v
我有以下錯誤
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
debug1: Next authentication method: publickey
debug1: Offering RSA public key: settwo_05012012.pem
debug1: Authentications that can continue: publickey
debug1: Trying private key: id_rsa-my-keypair
debug1: read PEM private key done: type RSA
debug1: Authentications that can continue: publickey
debug1: No more authentication methods to try.
Permission denied (publickey).
有趣的是,我試圖使用相同的創建另一個實例密鑰對與Ubuntu的阿米,我沒有問題進入。我已經排除了22端口的問題。我真的想用這個bitami。幫助將不勝感激。
以下是ssh的配置
cat ssh_config|grep -v "#"
Host *
SendEnv LANG LC_*
HashKnownHosts yes
GSSAPIAuthentication yes
GSSAPIDelegateCredentials no