若显示结果中包含openssh-server-*,则说明已经安装,直接启动 sshd服务就可以了(service sshd start).(其中*的内容是该包的版本,一般为3.5p1-6)
2、netstat -a | more看有没正常启动
如果出现:
tcp 0 0 *:ssh *:* LISTEN
就说明正常启动了
vi /etc/ssh/sshd_config
2.设置为密码登陆方式
查找
PermitRootLogin yes
删除前面的#注释
查找
PasswordAuthentication no
改为
PasswordAuthentication yes
保存
4
3.重启ssh服务或重启服务器
service sshd restart
原文:http://blog.51cto.com/xiaogongju/2153436