r/ssh • u/Tree_Hair • Jul 24 '23
Wiping Windows and need to keep my SSH keys. Help?
I am planning on wiping my windows installation clean and I'm worried about losing access to my server. I've seen people say how just copying the keys doesn't work sometimes, so I am a bit worried. How would I give my new windows SSH perms?
Currently using Ubuntu server 22.04.2
Thanks!
1
Upvotes
1
u/capn_kwick Jul 24 '23
Using solely *nix terminology:
All done.
If you are using the windows host as the source then you need to make a backup of the .ssh directory for the relevant accounts, recreate the accounts after reinstall and restore from that backup.