step1:生成public/private rsa key pair在命令行中输入ssh-keygen -t rsa -C "your_email@example.com"
ssh-keygen -t rsa -C "your_email@example.com"
step2:将新生成的key添加到ssh-agent中:
# start the ssh-agent in the background eval "$(ssh-agent -s)" Agent pid 59566 ssh-add ~/.ssh/id_rsa