Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Linux: SSH
(view source)
Revision as of 13:22, 17 April 2016
87 bytes added
,
13:22, 17 April 2016
→Avoid broken pipe
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
Rafahsolis
Bureaucrats
,
Administrators
2,306
edits
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
Special pages
Printable version