欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

sles设置ssh客户端连接

程序员文章站 2022-03-20 22:03:25
...
切换到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