原文链接: https://hsiaofeng.com/archives/182.html
编辑配置文件的 Port
:
vi /etc/ssh/sshd_config
放行端口:
iptables -A INPUT -p tcp --dport 端口号 -j ACCEPT
保存并重启 SSH 服务:
iptables-save > /etc/iptables.up.rules
/etc/init.d/ssh restart
参考
https://www.laozuo.org/14001.html
本文转自: https://hsiaofeng.com/archives/182.html
本站仅做收录,版权归原作者所有。