默认防火墙是关闭的。
#netstat -ant|grep 22 //查看22端口状态
tcp
tcp
#/etc/ssh/ssh_config ---> PasswordAuthenticationyes
#/etc/ssh/sshd_config ---> PasswordAuthenticationyes
#
#
#
#
#
#
#
#
#
#
#
#
#
/Password
如果防火墙是关闭的。
#yast: Yet Another System Tool,在firewall中设定允许ssh通过。
#ssh restart: 重新启动ssh服务
启动ssh服务
停止服务器:
#service sshd stop