My question is how I can migrate my ssh keys for fresh install without upload on servers again my new keys? This is annoying thing if you have few servers and I want just copy something from old system to new and just have my login on servers without passwords.
This questions not related to concrete version opensuse, even more I think will usefull if possible do that between different distro (for ex. ubuntu and opensuse).
Just copy /etc and save /home dir not enough, I loose something else?
I’m using this feature on my laptop for a customer’s server. I’ve set this up a couple of years ago, and never had to change anything. The id_rsa and id_rsa.pub reside in ~/.ssh in my case.
Weird then I try connect to server from fresh installed system server reject. >:(
I’m not positive if you are asking about how to copy the private data on
the client side or the public data on the server side, but I think you’re
talking about the client side. As long as you copy your ~/.ssh directory
and keep all of your permissions the same, and assuming the SSH agent
loads your keys before you try the ‘ssh’ (or related) command, you should
be fine. Recreating a new key and pushing out is not required as long as
you have your old private key loaded on your system properly. If it does
not work, post the output of the following commands, filling in your
remote username and system where applicable:
Code:
ssh -vvv user@remotebox
ls -alR ~/.ssh
Good luck.