Difference between revisions of "Linux: SSH"

From RHS Wiki
Jump to navigation Jump to search
Line 7: Line 7:
 
== Convert rsa to ppk ==
 
== Convert rsa to ppk ==
 
  puttygen keyname -o keyname.ppk
 
  puttygen keyname -o keyname.ppk
 +
== Avoid broken pipe ==
 +
2 options:<br />
 +
1:<br />
 +
create file: /home/user/.ssh/ssh_config with the following content:
 +
<nowiki>
 +
HashKnownHosts yes
 +
GSSAPIAuthentication yes
 +
GSSAPIDelegateCredentials no
 +
ServerAliveInterval 120</nowiki>
 +
 +
2:
 +
<nowiki>
 +
echo 60 > /proc/sys/net/ipv4/tcp_keepalive_time</nowiki>

Revision as of 22:31, 10 April 2015

Config file

sudo nano /etc/ssh/sshd_config

Welcome message

Two files must be edited:
/etc/motd (message of the day)
/etc/ssh/sshd_config: Change the setting PrintLastLog to "no", this will disable the "Last login" message.

Convert rsa to ppk

puttygen keyname -o keyname.ppk

Avoid broken pipe

2 options:
1:
create file: /home/user/.ssh/ssh_config with the following content:

HashKnownHosts yes
GSSAPIAuthentication yes
GSSAPIDelegateCredentials no
ServerAliveInterval 120

2:

echo 60 > /proc/sys/net/ipv4/tcp_keepalive_time