clients:secure_shell
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
clients:secure_shell [2016/06/25 14:34] – Sean Rhone | clients:secure_shell [2021/09/30 23:20] (current) – Sean Rhone | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Information ====== | ||
+ | * OpenSSH client notes | ||
+ | * See [[servers: | ||
+ | |||
+ | ====== 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 ===== | ||
+ | |||
+ | * [[https:// | ||
+ | |||
+ | ssh-keygen -t ' | ||
+ | |||
+ | ===== FIDO/U2F Key ===== | ||
+ | |||
+ | * [[https:// | ||
+ | * Works with [[https:// | ||
+ | * :!: '' | ||
+ | |||
+ | ssh-keygen -t ' | ||
+ | |||
+ | ====== Send Public Key to Server ====== | ||
+ | |||
+ | * Change '' | ||
+ | |||
+ | ssh-copy-id ' | ||
+ | |||
+ | ====== Force Public Key Login ====== | ||
+ | |||
+ | * [[https:// | ||
+ | |||
+ | sudo -e '/ | ||
+ | |||
+ | < | ||
+ | PasswordAuthentication no | ||
+ | AuthenticationMethods publickey</ | ||
+ | |||
+ | ====== Manage Keys ====== | ||
+ | |||
+ | ===== Backup ===== | ||
+ | |||
+ | **** | ||
+ | |||
+ | tar -cvzf ~/' | ||
+ | |||
+ | ===== Restore ===== | ||
+ | |||
+ | **** | ||
+ | |||
+ | ls ~/' |