解决packet_write_wait: Connection to...: Broken pipe
问题
打算从远程仓库克隆项目到本地时,报错:
$ git clone [email protected]:EverChan6/meetingDemo.gitCloning into 'meetingDemo'...
packet_write_wait: Connection to 52.74.223.119 port 22: Broken pipe // <==就是它!!!
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
解决
1. 从网上看了挺多解决办法,终于找到一个说辞是说
由于多日未 进行ssh 登录操作,本地 publickey 失效造成的。所以解决方法就是Adding your SSH key to the ssh-agent
$ ssh-add ~/.ssh/id_rsaIdentity added: /c/Users/HP/.ssh/id_rsa (/c/Users/HP/.ssh/id_rsa)
2. 如果执行上面的命令出现如下错误
Could not open a connection to your authentication agent.则先执行以下命令
$ ssh-agent bash相关推荐
projava 2020-11-14
WanKaShing 2020-11-12
airfish000 2020-09-11
tryfind 2020-09-14
yegen00 2020-09-10
kkaazz 2020-09-03
风语者 2020-09-02
BraveWangDev 2020-08-19
lichuanlong00 2020-08-15
gsl 2020-08-15
pandaphinex 2020-08-09
yhuihon 2020-08-09
CheNorton 2020-08-02
xiangqiao 2020-07-28
hpujsj 2020-07-26
hpujsj 2020-07-26
sshong 2020-07-19
BraveWangDev 2020-07-19
annan 2020-07-18