💾 Archived View for yaky.dev › notes › ssh-key-auth captured on 2023-04-26 at 13:29:34. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-01-29)

➡️ Next capture (2023-05-24)

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

Yaky's

blog

notes

apps

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

CC-BY yaky.dev