sshcentosssh-keysssh-keygenpassphrase

Transferring a passphrase protected private SSH key to another machine


I am trying to use the same SSH keys on a new machine. This was my original setup:

~/.ssh/mykey 

~/.ssh has 700 permission
~/.ssh/mykey has 600 permission

I used ssh -i to specify the key used to log into a server.

I copied the paths, contents, and permissions of mykey to my new laptop.

Unfortunately, the passphrase I used old machine is not working for my new laptop. Am I missing a step?


Solution

  • It looks like it is better to just create a new SSH key.