it is possible to copy id_rsa from old machine to newone ?

Issues related to applications and software problems
Post Reply
GioMBG
Posts: 59
Joined: 2012/02/27 00:28:14
Location: Conthey Suisse
Contact:

it is possible to copy id_rsa from old machine to newone ?

Post by GioMBG » 2019/05/27 11:53:57

Hi All,
Is it possible to copy id_rsa and id_rsa.pub from an old machine to a new one to maintain the sftp/ssh accesses ( without passwords ) that we had on the old machine to various others ftp servers ?
Gio

User avatar
TrevorH
Site Admin
Posts: 33218
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: it is possible to copy id_rsa from old machine to newone ?

Post by TrevorH » 2019/05/27 12:01:47

Yes.

Though you might want to review it and see if it is still fit for purpose. For example, old ssh-keygen used to default to creating 1024 bit keys and the latest uses 2048 or 4096 by default.

Make sure that if you copy it over, you have the right selinux contexts on the files - they can be set by running restorecon -RFv against ~/.ssh
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply