Report this

What is the reason for this report?

Passwordless SSH servers - what backup plan?

Posted on August 3, 2018

So in general I have been creating droplets without passwords and adding my macbook ssh key as the only way yo access them. All has been going fine so far but I just have a few questions:

  1. If my macbook were to set on fire, my ssh key is gone. I then can’t access the servers. I can’t use the DO consoles either since I have no password in order to add a new SSH key. Is it normal to backup my ssh key pair files to an external drive/host and then would I simply buy a new macbook and stick those in the .ssh directory and continue on as normal?

  2. If the above is not the way to go, how could I regain access to my servers again to add my new mac ssh key?

  3. I still have my old mac, but bought a new one the other day (hence why this has came to mind). I have been sending my public key to my old mac and then using my old mac to access each server one by one and adding my new ssh key. Is this the best method? Or should I have just copied my old ssh key pair to the new mac and let both computers share?

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.