suse 12 配置ssh服务

编辑sshd_config文件:
vim /etc/ssh/sshd_config
PermitRootLogin yes
PasswordAuthentication yes

查看是否开启了防火墙:
service SuSEfirewall2 status

如果开启了则编辑SuSEfirewall2文件,没有则无需往下做:
vim /etc/sysconfig/SuSEfirewall2
FW_SERVICES_EXT_UDP="22"
FW_SERVICES_EXT_TCP="22"

重启sshd和SuSEfirewall2服务:
service sshd restart
service SuSEfirewall2 restart

你可能感兴趣的:(suse,防火墙,ssh)