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 年前檢視次數 388 次
1 個回答
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
專家
已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南