Blog

Create New SSH Keys on Mac OSX Sierra

Generate new keys osx sierra

1
ssh-keygen -t rsa

Set permissions

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

Check newly created key

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

Copy public key to clipboard

1
pbcopy < ~/.ssh/id_rsa.pub

Copy public SSH key to a remote account

1
ssh-copy-id admlocal@xxx.xxx.xxx.xxx