kali 开启 SSH 服务

修改配置文件

sudo vim /etc/ssh/sshd_config
  • #PasswordAuthentication no 的注释去掉,并将 NO 修改为 YES

  • PermitRootLogin xxxxxx 修改为 PermitRootLogin yes

  • :wq 保存退出

启动SSH服务

sudo /etc/init.d/ssh start

完成测试

在 PowerShell 中(或其他 Linux 中),使用 SSH 命令即可验证。

posted @ 2020-03-18 10:00  Yogile  阅读(556)  评论(0编辑  收藏  举报