Guest User

Untitled

a guest
Jan 22nd, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. iptables -I INPUT -s 192.168.0.1/24 -p tcp --dport 22 -j ACCEPT
  2. iptables -I INPUT -s 192.168.0.1/24 -p tcp --dport 22 -j ACCEPT
  3. iptables -A INPUT -p tcp --dport 22 -j DROP
  4.  
  5. echo "MaxAuthTries 5" >> /etc/ssh/sshd_config
Add Comment
Please, Sign In to add comment