Cannot ssh into VM

September 8, 2017 251 views
Security Ubuntu 16.04

Since about 8 hours ago I am unable to ssh into my server. This was working fine until it just stopped. I tried to reset the root password and am allowed to reset it. But after I try to login using the new password from the console, the vm will not let me in. I then spun up a new vm from a snapshot of the previous one, this time with ssh key enabled - still no luck. Cannot login even with the ssh key. Any thoughts/ideas would be great.

1 comment
1 Answer

@cloud6cda1d1f28dea40e13a8c

If you can login from the console make sure the ssh daemon is running with sudo service ssh status
if it is not running start it with sudo service ssh start

If you have the firewall enabled make sue to allow ssh incoming connections: ufw allow 22/tcp

Hoe this helps.

Have another answer? Share your knowledge.