Post

SUSE 开启 sshd

修改 sshd_config

1
2
3
4
vim /etc/ssh/sshd_config
# 做如下修改:
PermitRootLogin yes
PasswordAuthentication yes

查看防火墙状态

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

重启ssh和SuSEfirewall2服务

1
2
3
4
5
6
7
8
service sshd restart
service SuSEfirewall2 restart

## 或者
systemctl status SuSEfirewall2
systemctl stop SuSEfirewall2
systemctl disable SuSEfirewall2
systemctl status SuSEfirewall2

EOF


Power by TeXt.

This post is licensed under CC BY 4.0 by the author.