运行后
eval `ssh-agent -s`
ssh-add ~/.ssh/id_rsa
并输入我的密码,git 仍然会在我每次执行远程操作时提示我输入密码。
为了显示:
bash-4.1$ echo $SSH_AUTH_SOCK
/tmp/ssh-cWNDloIzZkhW/agent.5560
bash-4.1$ ssh-add -l
2048 <fingerprint> /cygdrive/c/Users/<username>/.ssh/id_rsa (RSA)
bash-4.1$ git pull
Enter passphrase for key '/cygdrive/c/Users/<username>/.ssh/id_rsa':