Quote:
Originally Posted by bjornxon
Hi all!
If I have a server I wan't to be able to connect to through SSH and use public/private keys, but from multiple clients.
Should I absolutely generate a new key-pair on each client and transfer the public key to the server etc for each one? Is it Ok to just copy the private key to the different clients? Or is that a big No-no?
/Björn
|
If you want to log into the server from different clients without using password, make the file authorized_keys on the server in the directory ~/.ssh and copy the text of pub file of one client and paste into authorized_keys file and save it then copy the text of pub file of second client and paste into authorized_keys file of server and save it.
Now when ever clients log in to the server, the server's user's password will not be asked to clients.
If you want to know the directory and file permission, check here.
https://kimmo.suominen.com/docs/ssh/