Skip to content

Latest commit

 

History

History
31 lines (18 loc) · 937 Bytes

ssh.md

File metadata and controls

31 lines (18 loc) · 937 Bytes

SSH

Client

Keys

Generate default 3072-bit RSA (and SHA256) key.

ssh-keygen -C "$(whoami)@$(uname -n)-$(date --iso-8601=date)"

Upon issuing the ssh-keygen command, you will be prompted for the desired name and location of your private key.

Use date -Idate on macOS.

Managing multiple keys

You can set different keys to be used for different hosts or remote users by using ~/.ssh/config.

SSH agents