【问题标题】:Permission denied (publickey) with bitami AMI & EC2bitnami AMI 和 EC2 的权限被拒绝(公钥)
【发布时间】:2012-05-04 02:09:36
【问题描述】:

我使用 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

【问题讨论】:

    标签: ssh amazon-ec2


    【解决方案1】:

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

    用户应该是 bitnami 而不是 bitami。

    【讨论】:

      猜你喜欢
      • 2016-08-04
      • 1970-01-01
      • 2017-03-24
      • 2014-01-28
      • 1970-01-01
      • 1970-01-01
      • 2018-02-04
      • 2014-07-24
      • 1970-01-01
      相关资源
      最近更新 更多