I'm a bit new to SSH and it's technique, but used it to connect to websites on my old MacBook.
Since I now have a new one, I want to use the same key if thats possible.
I saved the (ssh-rsa) key in 1Password.
Now I want to overwrite the default "id_rsa" file if that's possible, so my connection is working again. Is this possible and how can I encrypt this key and replace the current key in the id_rsa file?
Thanks!
1 Answer
Just copy your old key (typically
id_rsa
(private key) andid_rsa.pub
(public key)) to your new computer to~/.ssh/
make sure to have the right permissions with
chmod 400 ~/.ssh/id_rsa
then add the key using
ssh-add
for example
ssh-add ~/.ssh/id_rsa
-----BEGIN OPENSSH PRIVATE KEY-----
. You will need the private key to authenticate to those remote systems. There is a good explanation of public vs private keys here: ssh.com/ssh/public-key-authentication