切换到root账户
1、 vi /etc/sysconfig/SuSEfirewall2
2、 9.)
# Which TCP services _on the firewall_ should be accessible from
# untrusted networks?
#
# Format: space separated list of ports, port ranges or well known
# service names (see /etc/services)
#
# Examples: "ssh", "123 514", "3200:3299", "ftp 22 telnet 512:514"
#
# Note: this setting has precedence over FW_SERVICES_ACCEPT_*
# 修改为22端口
FW_SERVICES_EXT_TCP="[color=darkred]22[/color]"
3、rcSuSEfirewall2 restart
1、 vi /etc/sysconfig/SuSEfirewall2
2、 9.)
# Which TCP services _on the firewall_ should be accessible from
# untrusted networks?
#
# Format: space separated list of ports, port ranges or well known
# service names (see /etc/services)
#
# Examples: "ssh", "123 514", "3200:3299", "ftp 22 telnet 512:514"
#
# Note: this setting has precedence over FW_SERVICES_ACCEPT_*
# 修改为22端口
FW_SERVICES_EXT_TCP="[color=darkred]22[/color]"
3、rcSuSEfirewall2 restart