需求:通过putty软件ssh到Kali-Linux系统
问题:默认情况下,Kali系统的ssh服务并没有开启
操作方法:
1、编辑sshd_config文件
[email protected]:~# vi /etc/ssh/sshd_config
2、检查如下配置项:
PasswordAuthentication yes
PermitRootLogin yes
3、启动ssh服务
[email protected]:~# /etc/init.d/ssh start
[ ok ] Starting OpenBSD Secure Shell server: sshd.
或者:
[email protected]:~# service ssh start
[ ok ] Starting OpenBSD Secure Shell server: sshd.
4、验证ssh服务状态,使用putty等客户端连接Kali-Linux
[email protected]:~# /etc/init.d/ssh status
[ ok ] sshd is running.
[email protected]:~#
[email protected]:~# service ssh status
[ ok ] sshd is running.
时间: 2024-10-10 20:00:35