修改 sshd_config
vim /etc/ssh/sshd_config
# 做如下修改:
PermitRootLogin yes
PasswordAuthentication yes
查看防火墙状态
service SuSEfirewall2 status
# 如果是开启状态(未开启则无需修改)
vim /etc/sysconfig/SuSEfirewall2
# 做如下修改
FW_SERVICES_EXT_UDP="22"
FW_SERVICES_EXT_TCP="22"
重启ssh和SuSEfirewall2服务
service sshd restart
service SuSEfirewall2 restart
## 或者
systemctl status SuSEfirewall2
systemctl stop SuSEfirewall2
systemctl disable SuSEfirewall2
systemctl status SuSEfirewall2
EOF
Power by TeXt.