I'm planning to do a fresh OS installation, but first I want to backup my .ssh
folder in order to keep my ssh keys. Can I copy it into a usb stick and if so how can I do this? Do I need to do any extra steps in order to "restore" the ssh keys on my new installation?
how-to-set-up-ssh-keys-on-linux-unix
For the user keys
where /media/user/flash is your mounted usb stick location
For the server keys
After your new set up is ready just perform the reverse.
Warning This will transfer your personal keys and your server keys (and they can be used to 'be' (not just impersonate) the old server (or you), so be careful what happens to the usb stick after you no longer require it...)