Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setting up or reusing an ssh key on ubuntu OS

Tags:

ssh

ssh-keys

Is there a way to reuse my existing ssh key on one linux machine on a PC with Ubuntu OS,am trying to access gerrit on a Ubuntu OS PC and as expected ssh connection needs to be established.

I don’t want to run generate a new ssh key with my email id as it might mess-up my current ssh connection, how to proceed forward? any inputs

Thanks

like image 248
user3131197 Avatar asked Mar 28 '14 20:03

user3131197


1 Answers

You can copy your older ssh keys to the new machine.

Basically, copy your ~/.ssh/id_rsa and ~/.ssh/id_rsa.pub files to this new machine at same location, and you should be able to ssh in all right. You might need to explicitly specify the user account you want to ssh into like ssh user@server.

Also, you might want to go through more answers on reusing ssh keys.

like image 61
Anshul Goyal Avatar answered Sep 24 '22 06:09

Anshul Goyal