Cant connect to SSH

0

All the settings are correct. in ec2-instance-connect, while pinging to 8.8.8.8, shows network error ifconfig gives lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10<host> loop txqueuelen 1000 (Local Loopback) RX packets 351 bytes 89402 (89.4 KB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 351 bytes 89402 (89.4 KB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

  • Please provide substantially more details to get an adequate answer. Have you checked all the firewalls involved: Network ACL, Security Group, operating system?

  • Have checked all the firewalls involved: Network ACL, Security Group, and operating system.

    the network error persists.

    https://stackoverflow.com/questions/42664340/ubuntu-aws-instance-reachability-check-failed

    In this post, it says that Ubuntu 18.04 break the network connectivity and has DHCP problems

    Cant connect to SSH and FTP too

  • Are you running the ssh command from an enterprise laptop or network? It is mostly the case that these ports are blocked by default.

1 Answer
0

My personal recipe to understand the exact situation is to connect to tcp port 22 (ssh) via your usual telnet client to see if session gets established properly at tcp level. If yes, you know that you have a real ssh issue (public/private key, password). If no, you have an improper network (routing) or security (sec groups) configuration.

So, do you get a tcp session established via telnet on ssh port?

profile pictureAWS
EXPERT
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions