$ ssh-keygen -t rsa -b 4096 -f ~/.ssh/vps-cloud.web-server.key -C 'My web-server key'
ssh-add -L
ssh-add -D
kill $SSH_AGENT_PID
trap 'kill $SSH_AGENT_PID' 0
$ sudo vim /etc/ssh/sshd_config
$ sudo vim +/PermitRootLogin /etc/ssh/sshd_config
# adduser vivek
ssh-keygen -p
ssh-add
command, and not an application installed by macports, homebrew, or some other external source.~/.ssh/config
file to automatically load keys into the ssh-agent and store passphrases in your keychain.-K
option is Apple's standard version of ssh-add
, which stores the passphrase in your keychain for you when you add an ssh key to the ssh-agent.git
commands on Windows.