

Highlight the entire public key from the terminal window and copy the text. Manually copy the key to the authorized_keys file. Run the command ssh-copy-id -i ~/.ssh/.pub or ssh-copy-id -i ~/.ssh/id_rsa.pub if the default was used. If only one key has been made connect with ssh multiple keys have been made connect with ssh -i ~/.ssh/ and upload SSH KeyĬopy the public key to the server using either of the following: You can copy the key to the clipboard by running pbcopy < ~/.ssh/.pub or pbcopy < ~/.ssh/id_rsa.pub if the default was used. SHA256:GKW7yzA1J1qkr1Cr9MhUwAbHbF2NrIPEgZXeOUOz3Us key's randomart image is: If not, use the default.Įnter passphrase (empty for no passphrase): Passphrases must meet campus passphrase requirements. Running ssh-keygen will produce the following messages and prompts:Įnter file in which to save the key (/home//.ssh/id_rsa): /home//.ssh/ If creating more than one key, use a descriptive name that identifies what server the key belongs to, and note the name for later. By doing this, you tell this host1 that youruser will accept the private key which is pair of this authorized public key. Go to Applications > Utilities > Terminal you place the public key (contents of idrsa.pub) in the authorizedkeys file in the host (let’s call it host1) that you want to login to (e.g. Official PuTTY Documentation can be found on the PuTTY website. To save these settings, return to Session and add a name for this connection to Saved Sessions then hit Save. Under Authentication parameters > Private key file for authentication click Browse. You will have to overwrite the original private key when saving.Įnter the remote server Host Name or IP address under Session. The public key for pasting into the OpenSSH authorized_keys file will populate above.Īdd or change the passphrase for the public/private key pair. If your private key has a different extension, change the Files of Type to All Files (*.*) Navigate to the private SSH key file on your computer.Click Load an existing private key file.

Save the private key passphrase to LastPass. Paste the public key into the authorized_keys file. Use your preferred text editor to create and/or open the authorized_keys file at ~/.ssh/authorized_keys SSH into the server with your existing credentials. Highlight the entire public key from the PuTTYgen window and copy the text. Saving the public key will save it in a text format that will not correspond directly to the text needed for pasting into the authorized_keys file. You may save the public key as well, but you can always retrieve the public key by loading the private key file from the last step. Use a descriptive name that identifies what server the private key belongs to. Passphrases must meet campus passphrase requirements. Add a key comment that identifies what local computer the public key belongs to.Īdd key passphrase and confirm passphrase.
