我遇到了这个错误:
$ git push heroku master
Warning: Permanently added the RSA host key for IP address '50.19.85.132' to the list of known hosts.
! Your key with fingerprint b7:fd:15:25:02:8e:5f:06:4f:1c:af:f3:f0:c3:c2:65 is not authorized to access bitstarter.
Run Code Online (Sandbox Code Playgroud)
我试图添加密钥,我在下面收到此错误:
$ ssh-add ~/.ssh/id_rsa.pub
Could not open a connection to your authentication agent.
Run Code Online (Sandbox Code Playgroud) 我已经开始使用ssh-agent了:
$ ssh-agent.exe
SSH_AUTH_SOCK=/tmp/ssh-LagrQoD3JRqg/agent.3600; export SSH_AUTH_SOCK;
SSH_AGENT_PID=7784; export SSH_AGENT_PID;
echo Agent pid 7784;
Run Code Online (Sandbox Code Playgroud)
接下来我尝试添加一个键:
$ ssh-add /cygdrive/h/mykey.pem
Run Code Online (Sandbox Code Playgroud)
我得到的回应是:
Could not open a connection to your authentication agent.
Run Code Online (Sandbox Code Playgroud) 我是新手使用git.每次我想将我的文件推送到github时,它总会显示我输入密码的通知.例如:'https://username@bitbucket.org'的密码
我希望我的git能为我记住密码.我怎么能在Windows 7上做到这一点?我已经在这里阅读了帮助页面https://help.github.com/articles/set-up-git
我尝试用git简化我的工作,然后我尝试用我的存储库拉
git pull
Run Code Online (Sandbox Code Playgroud)
我得到"权限被拒绝(publickey),我通过两个命令解决这个问题:
1. ssh-agent /bin/bash
2. ssh-add /root/.ssh/mykey
Run Code Online (Sandbox Code Playgroud)
输入/root/.ssh/mukey *的密码- 现在我使用"git pull"
但是我下次通过ssh连接时我必须一次又一次地重新输入这两个命令
如何让它自动初始化以跳过此步骤?