您的位置:首页 > 其它

开启ssh服务

2013-07-16 14:56 302 查看
[b]CentOS默认安装好是开启的,如果关闭可安如下步骤开启:
[/b]
[root@localhost ~]# vim /etc/ssh/sshd_config
#PasswordAuthentication yes
#PermitEmptyPasswords no
PasswordAuthentication yes
#将#PasswordAuthentication no的注释去掉,并且将NO修改为YES
PermitRootLogin yes
将#PermitRootLogin yes的注释去掉
[root@localhost ~]# /etc/init.d/sshd restart  //重新启动SSH服务
Stopping sshd:                                             [  OK  ]
Starting sshd:                                             [  OK  ]
[root@localhost ~]# /etc/init.d/sshd status  //验证SSH服务状态
openssh-daemon (pid  1963) is running...
[root@localhost ~]#


本文出自 “水滴石穿” 博客,请务必保留此出处http://pengyl.blog.51cto.com/5591604/1250474
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: