Kex_exchange_identification: write: Broken pipe

Getting below error while running ssh for git

$ ssh -vT
OpenSSH_8.1p1, LibreSSL 2.7.3
debug1: Reading configuration data /Users/vivek.grewal/.ssh/config
debug1: /Users/vivek.grewal/.ssh/config line 1: Applying options for *
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 47: Applying options for *
debug1: Connecting to port 22.
debug1: Connection established.
debug1: identity file /Users/vivek.grewal/.ssh/id_rsa type 0
debug1: identity file /Users/vivek.grewal/.ssh/id_rsa-cert type -1
kex_exchange_identification: write: Broken pipe

Hi @grewaviv :wave:

It looks like this may be the result of a server timeout. to avoid the SSH session disconnection is to send an ‘alive message’ either from the server to client ( ClientAliveInterval ) or from client to server ( ServerAliveInterval ) at certain time interval.

This article has more detail on what to you can do about it.

I have tried it, but it didn’t help.

What were the outputs of those commands after having run them?