[SSH] SSH Troubleshooting

1) There's a connection timeout

This is a security group issue. Any timeout (not just for SSH) is related to security groups or a firewall. Ensure your security group looks like this and correctly assigned to your EC2 instance.

2) There's still a connection timeout issue

If your security group is properly configured as above, and you still have connection timeout issues, then that means a corporate firewall or a personal firewall is blocking the connection. Please use EC2 Instance Connect as described in the next lecture.

 

3) SSH does not work on Windows

  • If it says: ssh command not found, that means you have to use Putty

  • Follow again the video. If things don't work, please use EC2 Instance Connect as described in the next lecture

 

4) There's a connection refused

This means the instance is reachable, but no SSH utility is running on the instance

  • Try to restart the instance

  • If it doesn't work, terminate the instance and create a new one. Make sure you're using Amazon Linux 2

 

5)  Permission denied (publickey,gssapi-keyex,gssapi-with-mic)

This means either two things:

  • You are using the wrong security key or not using a security key. Please look at your EC2 instance configuration to make sure you have assigned the correct key to it.

  • You are using the wrong user. Make sure you have started an Amazon Linux 2 EC2 instance, and make sure you're using the user ec2-user. This is something you specify when doing ec2-user@<public-ip> (ex: ec2-user@35.180.242.162) in your SSH command or your Putty configuration

 

6) Nothing is working - "aaaahhhhhh"

Don't panic. Use EC2 Instance Connect from the next lecture. Make sure you started an Amazon Linux 2 and you will be able to follow along with the tutorial :)

 

7) I was able to connect yesterday, but today I can't

This is probably because you have stopped your EC2 instance and then started it again today. When you do so, the public IP of your EC2 instance will change. Therefore, in your command, or Putty configuration, please make sure to edit and save the new public IP.

 

posted @   Zhentiw  阅读(48)  评论(0编辑  收藏  举报
编辑推荐:
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
阅读排行:
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
· 开源Multi-agent AI智能体框架aevatar.ai,欢迎大家贡献代码
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· AI技术革命,工作效率10个最佳AI工具
历史上的今天:
2019-07-11 [React Native] Style React Native Components Differently on iOS and Android
2019-07-11 [Debug] Dev tool Pause on caught exception
2018-07-11 [Algorithms] The Bayes Rule
2018-07-11 [Node.js] Add Logging to a Node.js Application using Winston
2018-07-11 [Node.js] Setup Local Configuration with Node.js Applications
点击右上角即可分享
微信分享提示