amazon web services - ssh : Connect to host <myPublicIP> port 22: connection refused -


i started learning amazon web services documentation (https://aws.amazon.com/getting-started/tutorials/launch-a-virtual-machine/) set instance, ssh key, public ip, , try ssh instance through command line on machine mentioned in documentation ( stuck @ step -3 of documentation )

chmod 400 /path/my-key-pair.pem 

this worked fine..

ssh -i /path/my-key-pair.pem ec2-user@my-public-ip-address 

but when try error:

ssh : connect host <mypublicip> port 22: connection refused 

i researched of answers, there 2 possible solutions: either reinstall ssh ( did too) or asked ssh -v

here result :

openssh_6.9p1 ubuntu-2ubuntu0.2, openssl 1.0.2d 9 jul 2015 debug1: reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 19: applying options * debug1: connecting <mypublicip> [<mypublicip>] port 22. debug1: connect address <mypublicip> port 22: connection refused ssh: connect host <mypublicip> port 22: connection refused 

and nothing.

any suggestions or useful links welcomed. appreciate effort linking question connection refused on new ec2 instance putty although didn't work either, putty used windows, i'd work on ubuntu. thank you

i facing similar short of issue, need put network ip in security group. try allowing traffic anywhere in security group , connect. if works put network ip in aws security group.


Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -