目標機器是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