💾 Archived View for yaky.dev › notes › ssh-key-auth captured on 2024-08-24 at 23:57:07. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2024-05-10)
-=-=-=-=-=-=-
SSH key authentication allows you to securely connect from your Linux machine to another Linux machine without typing a password.
Generate SSH key pair:
ssh-keygen
Choose default location.
Do not set a passphrase.
Copy SSH key to the remote machine:
ssh-copy-id username@remote.host
Enter the password for username on the remote machine.
The key is now copied to the remote machine.
Log into the remote machine:
ssh username@remote.host
Original source on DigitalOcean
(C) 2024 CC BY Anton Yaky