本文章距离最后一次更新已经过去了 2030 天,文章内容可能已经变得不可靠或者版本不适配,请谨慎阅读。

使用SSH登录kali

1

1

201904版本的kali默认是拒绝root用户直接登录的,需要我们修改两个配置项才能登录

首先查看SSH服务状态

shell
1
$ /etc/init.d/ssh status

修改配置文件

shell
1
$ vim /etc/ssh/sshd_config

增加下面第二行

shell
1
2
#PermitRootLogin prohib-passwd
PermitRootLogin yes

取消注释下面第二行

shell
1
2
#PasswordAuthentication yes
PasswordAuthentication yes

重启SSH服务

shell
1
$ /etc/init.d/ssh restart

OK