Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Linux: SSH
(view source)
Revision as of 13:19, 17 April 2016
33 bytes added
,
13:19, 17 April 2016
→Avoid broken pipe
Line 76:
Line 76:
== Avoid broken pipe ==
== Avoid broken pipe ==
2 options:<br />
2 options:<br />
−
1:<br />
+
1
ClientAliveInterval, SeverAliveInterval
:
<br />
−
create file: /home/user/.ssh/
ssh_config
with the following content: (client side)
+
Client side<br />
+
Use ClientAliveInterval if you have a jump machine
<br />
+
create file: /home/user/.ssh/
config
with the following content: (client side)
<nowiki>
<nowiki>
−
HashKnownHosts yes
+
Host *
−
GSSAPIAuthentication yes
+
ServerAliveInterval
60
</nowiki>
−
GSSAPIDelegateCredentials no
+
(server side)
−
ServerAliveInterval
120
</nowiki>
−
(server side)
This one worked!!
echo "ClientAliveInterval 60" | sudo tee -a /etc/ssh/sshd_config
echo "ClientAliveInterval 60" | sudo tee -a /etc/ssh/sshd_config
Line 124:
Line 124:
done
done
</source>
</source>
+
== known_hosts ==
== known_hosts ==
===Remove offending key===
===Remove offending key===
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