วันพฤหัสบดีที่ 20 สิงหาคม พ.ศ. 2558

change ssh port

; ระบุ port ในค่า xxxxx เช่น "port 12345"
# nano /etc/ssh/sshd_config
  Port xxxxx

# nano /etc/sysconfig/iptables
-A INPUT -m state --state NEW -m tcp -p tcp --dport xxxxx -j ACCEPT

# service iptables stop
# service ip6tables stop

ไม่มีความคิดเห็น:

แสดงความคิดเห็น