💾 Archived View for yaky.dev › notes › ssh-key-auth captured on 2024-09-29 at 00:11:22. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2024-08-31)

➡️ Next capture (2024-12-17)

🚧 View Differences

-=-=-=-=-=-=-

SSH Key Authentication

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

home

email me: hi@yaky.dev

CC BY-NC yaky.dev