![]() If only one key has been made connect with ssh multiple keys have been made connect with ssh -i ~/. 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. Go to Applications > Utilities > Terminal 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 can easily check to see if you have a key already by going to that directory and listing the contents: cd /.ssh ls authorizedkeys2 iddsa knownhosts config iddsa. You will have to overwrite the original private key when saving.Įnter the remote server Host Name or IP address under Session. By default, a user’s SSH keys are stored in that user’s /.ssh directory. 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. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |