Ssh: ubah port & firewall

From OnnoWiki
Revision as of 05:00, 30 July 2020 by Onnowpurbo (talk | contribs) (Created page with "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")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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