SSH Key Authentication
| SSH Key Authentication |
SSH Key Authentication
ssh-keygen -t ed25519 -C "user@host" - generate key
ssh-copy-id -i ~/.ssh/id_ed25519.pub user@remote - copy key
PubkeyAuthentication yes - enable in /etc/sshd_config
PasswordAuthentication no - disable password login
Benefit: more secure than password authentication"
Next: sudo vs doas
Article author: Arthur Isaev