SSH Config Notes

Disable SSH root login

$ sudo vi /etc/ssh/sshd_config

# Change the value to 'no'
PermitRootLogin no

$ sudo service ssh restart

Fix SSH timeout issue on ssh client

$ sudo vi /etc/ssh/ssh_config

# Add this line at the end of file
ServerAliveInterval 25

Leave a Comment

Your email address will not be published. Required fields are marked *