git push时出现错误

问题描述

更新,今天git push出现错误的ip还不一样。。。

$ git push
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.

$ git push -u origin master
packet_write_wait: Connection to 13.250.177.223 port 22: Broken pipe
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.


git push时出现错误:

$ git push
Counting objects: 46, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (46/46), done.
packet_write_wait: Connection to 13.250.177.223 port 22: Broken pipe
Writing obote end hung up unexpectedly.00 KiB | 2. T0he r0 KiemB/s
fatal: sha1 file '<stdout>' write error: Broken pipe
fatal: The remote end hung up unexpectedly

问题出现的平台版本及自己尝试过哪些方法

我是从远程仓库克隆了项目到本地,git addgit commit之后就git push不上去了,出现上述错误。
这是我在网上找过的方法,但是好像不太管用
ssh 登录报错 packet_write_wait: Connection to x.x.x.x port 22: Broken pipe
git: 记一次push的错误

相关代码

// 请把代码文本粘贴到下方(请勿用图片代替代码)
执行$ ssh -o ServerAliveInterval=120 myusername@13.250.177.223也报错:

$ ssh -o ServerAliveInterval=120 myusername@13.250.177.223
Permission denied (publickey).
阅读 7.6k
1 个回答

应该是权限问题

把本机的公钥(一般在是 ~/.ssh/id_rsa.pub)添加到你的仓库帐号中

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进