linux系统的ssh服务开启方法

时间:2016-02-06 22:23:24   收藏:0   阅读:2292

 

操作方法:

1、编辑sshd_config文件

root@linux:~# vi /etc/ssh/sshd_config

2、检查如下配置项:

PasswordAuthentication yes

PermitRootLogin yes

3、启动ssh服务

root@linux:~# /etc/init.d/ssh start
[ ok ] Starting OpenBSD Secure Shell server: sshd.

或者:

root@linux:~# service ssh start
[ ok ] Starting OpenBSD Secure Shell server: sshd.

4、验证ssh服务状态,使用putty等客户端连接Kali-Linux

root@linux:~# /etc/init.d/ssh status
[ ok ] sshd is running.
root@linux:~# 
root@linux:~# service ssh status
[ ok ] sshd is running.

原文:http://www.cnblogs.com/caoyang/p/5184397.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!