ssh_keys
This is an old revision of the document!
ssh-keygenSimilar output will be:
$ ssh-keygen Generating public/private rsa key pair. Enter file in which to save the key (/home/user/.ssh/id_rsa): test Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in test. Your public key has been saved in test.pub. The key fingerprint is: 01:01:43:22:c2:ec:24:85:f3:88:44:88:d6:df:7d:ea Luke@lukeshostNow we need to copy the public key onto the server
ssh-copy-id -i ~/.ssh/servername_id_rsa.pub [email protected]You can then log into the device using the private key:
ssh -i ~/.ssh/servername_id_rsa [email protected]If the private key matches the public key located on the server then it will allow you to log in!
ssh_keys.1462258001.txt.gz · Last modified: 2024/05/23 07:26 (external edit)