Greetings all,
I have switched from password based ssh(1) session establishment to public-private key based one. I have searched, but cannot find answer to the following questions.
1. After generating a public-private key pair and transmitting the public key to the remote host, do I delete the public key form the ~/.ssh/ directory at the local host?
2. Can I reuse the (same) public-private key pair for a plurality of hosts or is this a bed practice? If a different public-private key pair is to be used for each host, how do I select the correct key? Or is this handled automatically?
3. There are several public-private Host Keys in a /etc/ssh/ directory, which have been generated automatically. As I understand, they are used to authenticate the hosts. Same questions as in 2.
Kindest regards,
M
I have switched from password based ssh(1) session establishment to public-private key based one. I have searched, but cannot find answer to the following questions.
1. After generating a public-private key pair and transmitting the public key to the remote host, do I delete the public key form the ~/.ssh/ directory at the local host?
2. Can I reuse the (same) public-private key pair for a plurality of hosts or is this a bed practice? If a different public-private key pair is to be used for each host, how do I select the correct key? Or is this handled automatically?
3. There are several public-private Host Keys in a /etc/ssh/ directory, which have been generated automatically. As I understand, they are used to authenticate the hosts. Same questions as in 2.
Kindest regards,
M