Blog

Create New SSH Keys on Mac OSX Sierra

Generate new keys osx sierra

1
ssh-keygen -t rsa
generate-new-keys-osx-sierra.png

Set permissions

1
sudo chmod 600 ~/.ssh/id_rsa
set-permissions.png
1
cat ~/.ssh/id_rsa
0a92ab68-9b1d-474c-806d-550220567ae1.png

Check newly created key

1
ssh-keygen -l -f ~/.ssh/id_rsa.pub
check-newly-created-key.png

Copy public key to clipboard

1
pbcopy < ~/.ssh/id_rsa.pub
copy-public-key-to-clipboard.png

Copy public SSH key to a remote account

1
ssh-copy-id admlocal@xxx.xxx.xxx.xxx
copy-public-ssh-key-to-a-remote-account.png