Generate SSH Keys
Standard
FIDO/U2F Key
-
-
ed25519-sk didn't work with Solo 4.0.0
ssh-keygen -t 'ecdsa-sk'
Send Public Key to Server
ssh-copy-id 'espionage724'@'x'
Force Public Key Login
sudo -e '/etc/ssh/sshd_config.d/pubkey-only-custom.conf'
PasswordAuthentication no
AuthenticationMethods publickey
Manage Keys
Backup
tar -cvzf ~/'Documents/'$(date +%Y-%m-%d)'-ssh-keys.tar.gz' -C ~ '.ssh' && ls ~/'Documents/'*'-ssh-keys.tar.gz' && sync
Restore
ls ~/'Documents/'*'-ssh-keys.tar.gz' && rm -Rf ~/'.ssh' && tar -xvzf ~/'Documents/'*'-ssh-keys.tar.gz' -C ~ '.ssh' && sync