2

我使用 bitami AMI 创建了一个 EC2 实例。我使用 ec2-add-keypair 实用程序创建了一个 ec2 密钥对

当我尝试ssh -i id_rsa-my-keypair bitami@<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 ami 创建另一个实例,我没有问题进入。我已经排除了端口 22 的问题。我真的很想用这个bitami。帮助将不胜感激。

这是 ssh 配置中的几行

cat ssh_config|grep -v "#"

Host *
    SendEnv LANG LC_*
    HashKnownHosts yes
    GSSAPIAuthentication yes
    GSSAPIDelegateCredentials no
4

1 回答 1

0

试试这个: ssh -i id_rsa-my-keypair bitnami@myinstance -v

用户应该是bitnami而不是 bitami。

于 2014-03-27T18:39:30.903 回答