SSH public key authentication
SSH public key authentication method is more secure than traditional password methods, as it provides cryptographic strength.
Generating new keypairs with ssh-keygen
$ ssh-keygen
# View the private key
$ cat ~/.ssh/id_rsa
-----BEGIN OPENSSH PRIVATE KEY-----
...
-----END OPENSSH PRIVATE KEY-----
# View the public key
$ cat ~/.ssh/id_rsa.pub
ssh-rsa
...
...Sending the public key to the server with ssh-copy-id
SSH server side authorized keys
Important notice
Last updated
