Skip to content
Advertisement

Not able to connect to AWS server using linux terminal after a reboot with “sudo service sshd restart”. Getting “Connection timed out” error

I was trying to edit the sshd_config file and in between that my machine crashed. When I tried again it started showing the below message-

JavaScript

I deleted the .swp file but it looks like the original file got deleted. After that I ran this command “sudo service sshd restart “.

Now I am not able to connect to the AWS server using linux terminal. Can anyone please help me with this

Advertisement

Answer

The original file shouldn’t have been deleted … the .swp file is the in process edit.

Have you tried rebooting the instance?

If that doesn’t help, you may need to recover from a snapshot. You did take a snapshot before editing the ssh config, right?

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement