1. 修改sshd_config文件,命令为:vi /etc/ssh/sshd_config
         将#PasswordAuthentication no的注释去掉,并且将NO修改为YES 
         将#PermitRootLogin yes的注释去掉
2.重新启动SSH服务,命令为:/etc/init.d/sshd restart
3.验证SSH服务状态,命令为:/etc/init.d/sshd status

ssh 默认端口22  可以在该config文件中修改默认的端口。需要防火墙开放端口才能访问。