User Tools

Site Tools


clients:secure_shell

This is an old revision of the document!


Information

  • Various commands for a SSH client

Generate SSH Keys

Information

  • Can generate both a standard keypair and one for a hardware key
  • Hardware key will be used first if it's plugged-in

Standard

ssh-keygen -t 'ed25519'

FIDO/U2F Key

  • Works with Solo
  • :!: ed25519-sk didn't work with Solo 4.0.0
ssh-keygen -t 'ecdsa-sk'

Send Public Key to Server

  • Change x to IP
ssh-copy-id 'espionage724'@'x'

Manage Keys

Backup

tar -cvzf ~/'Documents/'$(date +%Y-%m-%d)'-'$HOSTNAME'-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/'*'-'$HOSTNAME'-ssh-keys.tar.gz' -C ~ '.ssh' && sync
/var/www/wiki/data/attic/clients/secure_shell.1591944589.txt.gz · Last modified: 2020/06/12 02:49 by Sean Rhone