by phaemon · 12y ago · 0 comments
sudo ufw allow proto tcp from any to any port 22
sudo ufw enable
Then you can just edit /etc/ssh/sshd_config the same as you would on OpenBSD. sudo ufw limit ssh
sudo ufw enable
To automatically rate limit connections -- see https://wiki.archlinux.org/index.php/Uncomplicated_Firewall#... sudo ufw allow from your.ip.addr to tcp port 22
Rest of the world doesnt know I have ssh up and if I'm ever in a hotel or something I can tunnel through my home or login to DO's panel and allow another ip