Where Do I Put Public Key on Linux Server?
Contents You Need to Be Able to Transfer Your Public Key to the Remote System. Therefore, You Must Either Be Able to Log into the Remote System with an...
You need to be able to transfer your public key to the remote system. Therefore, you must either be able to log into the remote system with an established account username and password/passphrase, or have an administrator on the remote system add the public key to the ~/. ssh/authorized_keys file in your account.
How do I add a public key to a Linux server?
How to Add SSH Public Key to Server
- Method 1: Automatically copy the ssh key to server.
- Method 2: Manually copy the public ssh key to the server. Step 1: Get the public key. Step 2: Create ssh directory in the user’s home directory (as a sysadmin) Step 3: Set appropriate permission to the file.
Must Read
Where is public key on Linux server?
Put the public key in your other server’s “/user/. ssh/authorized_keys” directory as well, and your Private key will be valid for that user – in this way, you can use one key combination for many servers and/or users.