Passwordless SSH servers - what backup plan?
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:
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?
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?
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?
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.×