Setup
# arch
paru -S openssh
sudo systemctl start sshd
sudo systemctl enable sshd
Usage
Generate Key
ssh-keygen -t ed25519 -C "user@machine"
- comment can be anything, user and machine name is helpful
- give file name and password or hit
Enterto use defaults
Copy to server
ssh-copy-id -i ~/.ssh/id_ed25519 <ssh-server>