SSH cheatsheet

Config

sudo vim /etc/ssh/sshd_config

Useful commands

Restart sshd

sudo /etc/init.d/ssh restart

Check recent login attempts

cat /var/log/auth.log | grep sshd