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 命令即可验证。

猜你喜欢

转载自www.cnblogs.com/Yogile/p/12515610.html