Question

Creating a droplet from an updated snapshot (yum -y update) will restrict ssh access.

Posted October 1, 2017 1.7k views
CentOS DigitalOcean Backups Linux Commands

Since a few days, if you create a droplet from a snapshot that was (yum) updated, you will not be able to access that droplet via Terminal (ssh: connect to host ...** port 22: Operation timed out). You will be able to access only from the DO console.

Test this:
1- create a droplet with Centos 7.3
2- yum update the droplet
3- poweroff and make a snapshot
4- create a new droplet using that snapshot
5- try to access via ssh (Terminal / Putty)

You will not be able to login that new droplet. When typing ssh root@newdropletip, the password prompt will never appear (you will get a “ssh: connect to host ...** port 22: Operation timed out”

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

2 answers

Hello,

This is an interesting question. I could suggest a few things:

  • Add verbose mode to your ssh command so that you could get some extra output:
ssh -vvv root@your_ip_here 

That way you would know what exactly your SSH command is doing

  • Try accessing your droplet via the console and make sure that it is actually up and running

I tried to recreate the exact same process at my end but it all went through smoothly.

Regards,
Bobby

Submit an Answer