linux - SSH connection on ec2 -


i'm trying connect aws ec2 instance keep being refused. i'm using same computer, same wifi when connect 1 of ec2 instance, fails.

when connect, says..

ssh -i successintoeflcom.pem ec2-user@52.68.152.179 ssh: connect host 52.68.152.179 port 22: connection refused  ssh -v successintoeflcom.pem ec2-user@52.68.152.179 openssh_6.2p2, osslshim 0.9.8r 8 dec 2011 debug1: reading configuration data /etc/ssh_config debug1: /etc/ssh_config line 26: applying options * ssh: not resolve hostname successintoeflcom.pem: nodename nor servname provided, or not known 

i looked @ /etc/ssh_config line 26, , found

host *    sendenv lang lc_* 

something got wrong, haven't found way make right.

i tried deleting ec2 instance , make new 1 new ssh key , new eip did not work. honestly, i'm new ssh settings. appreciated.

ps reason, able connect other ec2 instance on other aws account, use work.

  • check security groups inbound settings, make sure ssh protocol enabled source anywhere. because system ip address might change.

  • check .pem file permission. should set chmod 600.


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -