Changes

Jump to navigation Jump to search
87 bytes added ,  13:22, 17 April 2016
Line 76: Line 76:  
== Avoid broken pipe ==
 
== Avoid broken pipe ==
 
2 options:<br />
 
2 options:<br />
1 ClientAliveInterval, SeverAliveInterval:<br />
+
=== ClientAliveInterval, SeverAliveInterval===<br />
Client side<br />
+
==== Client side ====
 
Use ClientAliveInterval if you have a jump machine<br />
 
Use ClientAliveInterval if you have a jump machine<br />
 
create file: /home/user/.ssh/config with the following content: (client side) chmod 600
 
create file: /home/user/.ssh/config with the following content: (client side) chmod 600
Line 83: Line 83:  
  Host *
 
  Host *
 
     ServerAliveInterval 60</nowiki>
 
     ServerAliveInterval 60</nowiki>
(server side)
+
For each user, or ading to /etc/ssh/ssh_config
 +
ServerAliveInterval 60
 +
==== Server side ====
 
  echo "ClientAliveInterval 60" | sudo tee -a /etc/ssh/sshd_config
 
  echo "ClientAliveInterval 60" | sudo tee -a /etc/ssh/sshd_config
  

Navigation menu