Ssh: ubah port & firewall

From OnnoWiki
Jump to navigation Jump to search

Ubah

nano –w /etc/ssh/sshd_config
Port 22 ---> 2022


Ubah firewall

iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 2022 -j ACCEPT