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개 답변
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
전문가
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠