sles设置ssh客户端连接

切换到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=" 22"
3、rcSuSEfirewall2 restart

猜你喜欢

转载自theseus.iteye.com/blog/2307394