Skip to content

SSH Keys

always use a password on ssh keys

keygen command:

ssh-keygen -t ed25519 -f ~/.ssh/your-key-filename -C “your-key-comment”

Terminal window
ssh-keygen -t ed25519

file permissions for ssh files: https://superuser.com/a/215506

adding

echo "ssh-ed25519 {{key}} {{user}}@{{host}}" >> ~/.ssh/authorized_keys
chmod 600 ~/.ssh/authorized_keys