Linux: SSH
Revision as of 22:31, 10 April 2015 by Rafahsolis (talk | contribs)
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