Amazon EC2无法通过Ubuntu连接SSH
问题描述:
目标机器是ubuntu,已经为所有IP(0.0.0.0/0)端口22上的ssh设置了入站规则。的ssh -v -v -i ladc2015.pem [email protected]
结果是:Amazon EC2无法通过Ubuntu连接SSH
OpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2014
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to ec2-54-183-xxx-xxx.us-west-1.compute.amazonaws.com [54.183.128.207] port 22.
debug1: connect to address 54.183.xxx.xxx port 22: Connection refused
ssh: connect to host ec2-54-183-xxx-xxx.us-west-1.compute.amazonaws.com port 22: Connection refused
使用公网IP,而不是公共DNS已经尝试过,已经测试使所有入站通信规则与所有IP地址,已经使用root
,ubuntu
代替ec2-user
作为用户名。仍然无法连接。请帮忙,谢谢。
尝试的用户名'admin'这可能工作。 – 2015-03-03 08:58:47
@ Pierre-Jean同样的结果 – user2002495 2015-03-03 09:00:12
您可以尝试将您自己的ssh密钥添加到AWS /此实例吗? – 2015-03-03 09:01:03