linux suse12.3使用记录

查看防火墙状态

$ service SuSEfirewall2 status
# 如果是开启状态(未开启则无需修改)
$ vim /etc/sysconfig/SuSEfirewall2
# 做如下修改
FW_SERVICES_EXT_UDP="22"
FW_SERVICES_EXT_TCP="22"

前提

已安装ssh套件

修改sshd_config

$ vim /etc/ssh/sshd_config
# 做如下修改:
PermitRootLogin yes
PasswordAuthentication yes

重启ssh和SuSEfirewall2服务

$ service sshd restart
$ service SuSEfirewall2 restart

重启网络服务:
service network restart

发布了296 篇原创文章 · 获赞 70 · 访问量 55万+

猜你喜欢

转载自blog.csdn.net/feicongcong/article/details/88787528
今日推荐