12/5/2017 - 6:45 AM

Connect with ssh (mac)

Connect with ssh (mac)

$ ssh-keygen -t rsa -b 4096 -C ""
$ eval "$(ssh-agent -s)"
Agent pid 59566

If you're using macOS Sierra 10.12.2 or later, you will need to modify your ~/.ssh/config file to automatically 
load keys into the ssh-agent and store passphrases in your keychain.

Host *
 AddKeysToAgent yes
 UseKeychain yes
 IdentityFile ~/.ssh/id_rsa
$ ssh-add -K ~/.ssh/id_rsa

$ ssh-copy-id -i <file> -p <port> user@