1.编辑防火墙配置:vi /etc/sysconfig/iptables 防火墙增加新端口7022 -A INPUT -m state --state NEW -m tcp -p tcp --dport 7022 -j ACCEPT ====================================================================== # Firewall configuration written by system-config-firewall # M
首先 先做的就是 修改ssh的默认端口22 需要修改文件 /etc/ssh/sshd_config 使用命令 vi /etc/ssh/sshd_config [[email protected] ~]# vi /etc/ssh/sshd_config # $OpenBSD: sshd_config,v 1.90 2013/05/16 04:09:14 dtucker Exp $ # This is the sshd server system-wide configuration file. S