title: ROOT用户SSH登录kali
tags:
  - Kali
  - SSH
categories:
  - 小技巧
top_img: false
cover: '/upload/cdn0files/20200721123318.jpg'
abbrlink: b4e59a6
date: 2019-12-14 21:48:55
updated: 2019-12-14 21:48:55

使用SSH登录kali

1

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

首先查看SSH服务状态

$ /etc/init.d/ssh status

修改配置文件

$ vim /etc/ssh/sshd_config

增加下面第二行

#PermitRootLogin prohib-passwd
PermitRootLogin yes

取消注释下面第二行

#PasswordAuthentication yes
PasswordAuthentication yes

重启SSH服务

$ /etc/init.d/ssh restart

OK