segunda-feira, dezembro 26, 2016

Mac OS X / osX How to prevent “Write Failed: broken pipe” on SSH connection

create a file as ~/.ssh/config

### Stop timing out connections
ServerAliveInterval 15
ServerAliveCountMax 20

#TCPKeepAlive yes
#only worked for me with TCPKeepAlive no
TCPKeepAlive no

### SSH Connection pooling for faster additional connections to a machine
ControlMaster auto
ControlPath /tmp/ssh_mux_%h_%p_%r

Host *
  ControlMaster auto
  ControlPath ~/.ssh/control/%r@%h:%p
  ControlPersist 3600

### Make it so ssh-ing from one server to another passes keys around automagically
Host *
ForwardAgent yes
ForwardX11 yes

Nenhum comentário: