操作方法:
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.