Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- iptables -I INPUT -s 192.168.0.1/24 -p tcp --dport 22 -j ACCEPT
- iptables -I INPUT -s 192.168.0.1/24 -p tcp --dport 22 -j ACCEPT
- iptables -A INPUT -p tcp --dport 22 -j DROP
- echo "MaxAuthTries 5" >> /etc/ssh/sshd_config
Add Comment
Please, Sign In to add comment