无法在 Openstack 中 ssh 进入 Centos 虚拟机

无法在 Openstack 中 ssh 进入 Centos 虚拟机

在 Openstack 中,我可以生成 ubuntu 和 fedora 映像并通过 ssh 进入它们。但是当我尝试对 Centos 映像(6.5 或 7)执行相同操作时,我的密钥被拒绝(甚至被忽略),并且系统建议我输入密码。看来 ssh 密钥注入不适用于 Centos 映像(我尝试了不同的映像)。

知道我应该调查哪里吗?

以下是带有详细选项的 ssh 命令的输出:

debug1: Connection established.
debug1: identity file /c/Users/bastien/.ssh/id_rsa_bastien type 1
debug1: identity file /c/Users/bastien/.ssh/id_rsa_bastien-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.6.1
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.3
debug1: match: OpenSSH_5.3 pat OpenSSH_5* compat 0x0c000000
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-md5 none
debug1: kex: client->server aes128-ctr hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<3072<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Server host key: RSA 2b:6c:50:28:d0:1c:8b:50:c6:53:75:6f:bb:aa:6e:a7
debug1: Host '37.59.242.188' is known and matches the RSA host key.
debug1: Found key in /c/Users/bastien/.ssh/known_hosts:13
debug1: ssh_rsa_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,gssapi-keyex,gssapi-with-mic,password
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /c/Users/bastien/.ssh/id_rsa_bastien
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
debug1: Next authentication method: password

答案1

我正在使用 OVH 提供的 Openstack 即服务测试版。他们已经确定了问题并进行了更正:未考虑基于 Redhat 的系统的不符合要求。

现在一切正常!

相关内容