![]() ![]() Get the contents of your private key id_rsa.pub. ![]() Manually add a public key to authorized keys In order to authenticate ourselves, we will need to copy our public key to the authorized_keys of the user on the remote computer. The file /home//.ssh/authorized_keys contains all public keys that can be used to log in as that user. Read Do I need to have a passphrase for my SSH RSA key? for more details. This makes automation easier but means you have the private key absolutely private. What passphrase (password) do you want to use? You can leave this blank if you don't want a passphrase.At what location do you want to save the keys? If you don't know, just use the default location.In case you don't have an existing SSH key pair, or if you want to overwrite these, run the following command: $ ssh-keygen -t rsa Of these, id_rsa is the private key and id_rsa.pub is the public key. If that folder contains the files id_rsa and id_rsa.pub you already have an existing key pair. ssh folder in your home directory (on your local machine!) For me that would be /home/barry/.ssh. ![]() Naturally, these should be replaced by your own username and the IP address or hostname of your choice. The rest of this article lists various methods of achieving these steps.Īll following commands use username barry and IP address 123.123.123.123.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |