需求:通过putty软件ssh到Kali-Linux系统
问题:默认情况下,Kali系统的ssh服务并没有开启
操作方法:
1、编辑sshd_config文件
root@kali:~# vi /etc/ssh/sshd_config
2、检查如下配置项:
PasswordAuthentication yes
PermitRootLogin yes
3、启动ssh服务
root@kali:~# /etc/init.d/ssh start
[ ok ] Starting OpenBSD Secure Shell server: sshd.
或者:
oot@kali:~# service ssh start
[ ok ] Starting OpenBSD Secure Shell server: sshd.
4、验证ssh服务状态,使用putty等客户端连接Kali-Linux
root@kali:~# /etc/init.d/ssh status
[ ok ] sshd is running.
root@kali:~#
root@kali:~# service ssh status
[ ok ] sshd is running.
5、可选,添加ssh服务的自启动
root@Kali-Linux:~# vi /etc/init.d/rc.local
# add for sshd autorun
service ssh start