LoginSignup
0
0

More than 3 years have passed since last update.

githubでfatal: the remote end hung up unexpectedlyが出た時の対処法

Posted at

背景

新しいサービスのためのファイルを多数追加してgitにpushしようとしたところ、

packet_write_wait: Connection to 52.192.72.89 port 22: Broken pipe
fatal: the remote end hung up unexpectedly
fatal: the remote end hung up unexpectedly

というエラーが発生したので、対処法を調べてみた。
備忘録として記事を作成。

対処法

postできるサイズを上げる

git config --global http.postBuffer 10M

これだけでは解決せず、、、

SSHに設定を追加

~/.ssh/configに以下の設定を追加

ServerAliveInterval 600
TCPKeepAlive yes
IPQoS=throughput

自分のconfigファイルは以下のようになっている

~/.ssh/config
 Host github github.com
      HostName github.com
      IdentityFile ~/.ssh/keys/id_rsa
      ServerAliveInterval 600
      TCPKeepAlive yes
      IPQoS=throughput
      User git

これでpushしたところ問題無く通った

参考にしたサイト

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0