Can I use SSH keys from desktop on new laptop? (solved)

I'm getting a new laptop.

In order to SFTP and SSH into my Linodes do I need to create new ED25519 keys on laptop… or can I take the keys from my desktop, pop them in the /.ssh directory of laptop and SSH into the servers… as well as configure my SFTP client (Transmit) to use those keys?

Thanks.

UPDATE: After some research I found it is OK to use one set of keyd for multiple machines. The downside is that if the key gets compromised you will have to generate a new key-set and put them on ALL the devices you use them on. I'll only have one other device so I'll use the current key set I have from the desktop.

2 Replies

I've had 3 different MacBooks in the last 15 years or so. Every one of them has used the same ssh keys. I'm still using them.

-- sw

I copied the keys them to my brand new MacAir and they worked great.

First I ran ssh-keygen to create the /.ssh directory with the proper permissions and owner. I then deleted the keys it made and popped in the ed25519 keys from my ancient iMac, cranked up Transmit on the new MacAir and it connected to my Linodes via SFTP just fine.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct