I am trying to set up a key pair from my office machine to a fresh install of CentOS 7 on several servers.
Do I need a different key/pair for every server? Or do I simply use my public key from my office machine copied to each server?
Where does that public key actually go on the server(s)? There is no /.ssh directory on the new server. I do see a /etc/ssh directory that has (what I assume is) my public and private key for THAT server.
Do I need to create a /.ssh directory in /root then copy my public key there? And how do I name it so that I can have multiple public keys from other machines that also need to access this server?
SSH Key Pair confusion and questions...
-
- Posts: 10642
- Joined: 2005/08/05 15:19:54
- Location: Northern Illinois, USA
Re: SSH Key Pair confusion and questions...
Unless you are extraordinarily paranoid, you need only one private/public key pair. You keep the private key yourself and the public one gets uploaded to each server that you want to logon to. The public key is placed in (usually) /home/$USER/.ssh/authorized_keys although this location can be changed from the sshd config file (and almost never is).
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
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