DO Fan!
If you are facing the snapshot restoring and No SSH problem like me, Its easy to fix.
Here is the problem. I took a snapshot of my old server and then restored it to new server. Now I can’t SSH to it, or just ping to any external site in that server (ping google.com doesn’t work). However, everything is working in the digital ocean console side.
I spent 5 long hours to find this solution. I hope to help you too!!!
Solution:
Open DigitalOcean console and login to your server. (If the previous password doesn’t work, just reset/forgot password it)
type ifconfig and click enter.
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:420 errors:0 dropped:0 overruns:0 frame:0
TX packets:420 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:107265 (107.2 KB) TX bytes:107265 (107.2 KB)
ifconfig -aens3 Link encap:Ethernet HWaddr c2:eb:73:62:d7:5d
.......and so on.
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:426 errors:0 dropped:0 overruns:0 frame:0
TX packets:426 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:109321 (109.3 KB) TX bytes:109321 (109.3 KB)
ens3 to the network interface. To do that, type ```
cat /etc/network/interfaces
auto lo iface lo inet loopback
source /etc/network/interfaces.d/*
5. Go to the source, which is ```/etc/network/interfaces.d/``` for me.
Type ```cat /etc/network/interfaces.d```
6. Type ```ls``` and edit the file there. For me, its ```50-cloud-init.cfg```.
So, type ```nano 50-cloud-init.cfg```
7. This is your previous server's network configuration, just change the values of ```IP Address``` and ```Gateway```. You can find these values in your Digital ocean >Droplet>Networking section.
Also, add ```ens3``` device or whatever we found in step 3.
Make the file similar to this,
auto lo iface lo inet loopback dns-nameservers 67.207.67.2 67.207.67.3
auto lo ens3 iface lo inet loopback
iface ens3 inet static address 68.183.xx.xxx/20 gateway 68.183.xx.x
iface ens3 inet static address 10.47.0.5/16
8. Done, It should work now. Try ```ping google.com``` & should work properly.
Thank me later, Regards,
Sreekant Shenoy
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
If it doesn’t work even after this, do this https://www.digitalocean.com/community/questions/no-internet-connection-after-droplet-reboot
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.