uncategorized

Create New SSH Keys on Mac OSX Sierra

Generate new keys osx sierra

ssh-keygen -t rsa

Set permissions

sudo chmod 600 ~/.ssh/id_rsa
cat ~/.ssh/id_rsa

Check newly created key

ssh-keygen -l -f ~/.ssh/id_rsa.pub

Copy public key to clipboard

pbcopy < ~/.ssh/id_rsa.pub

Copy public SSH key to a remote account

ssh-copy-id [email protected]