【发布时间】:2018-04-14 21:51:56
【问题描述】:
我在 AWS 的不同区域推出了两台 Ubuntu 免费套餐服务器。我正在 ping 一台服务器到另一台服务器,但它显示一条连接超时的错误消息。请您尽快解决问题。
这是错误:
/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/home/ubuntu/.ssh/id_rsa.pub"
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys
Permission denied (publickey).
172.31.94.158 | UNREACHABLE! => {
"changed": false,
"msg": "Failed to connect to the host via ssh: ssh: connect to host 172.31.94.158 port 22: Connection timed out\r\n",
"unreachable": true
}
我试过下面的命令
1.ssh-copy-id ubuntu@172.31.94.158
2.sudo ansible webserver -m ping
【问题讨论】:
-
您的安全组是否设置为允许一台服务器连接到另一台服务器?
-
“您能尽快解决问题吗” - 我是 AWS 技术支持人员吗?
标签: amazon-web-services ubuntu ssh