美文网首页
解决 git push 的时候需要输入密码的问题

解决 git push 的时候需要输入密码的问题

作者: 43daf5f8181f | 来源:发表于2016-08-01 17:33 被阅读15次

Cite: http://unix.stackexchange.com/a/12201

You need to use an ssh agent.

$ ssh-add

Before pushing. Supply your passphrase when asked.

If you aren't already running an ssh agent you will get the following message:

Could not open a connection to your authentication agent.

In that situation, you can start one and set your environment up thusly

eval $(ssh-agent)

Then repeat the ssh-add command.

相关文章

网友评论

      本文标题:解决 git push 的时候需要输入密码的问题

      本文链接:https://www.haomeiwen.com/subject/thtfsttx.html