Linux Cheat Sheet¶
Configuring SSH access¶
How to configure SSH access to a remote Linux system.
Generate a local key¶
ssh-keygen -t ed25519 -C "[email protected]"
A few things to note:
~/.ssh/id_ed25519
is your private key. Keep it safe!~/.ssh/id_ed25519.pub
is your public key
On your Linux system¶
- Edit
~/.ssh/authorized_keys
on the remote system, and add your~/.ssh/id_ed25519.pub
file to it.
or you can run
ssh-copy-id -i ~/.ssh/id_ed25519.pub username@hostname