博客
关于我
关于KALI使用xshell连接
阅读量:836 次
发布时间:2019-03-24

本文共 670 字,大约阅读时间需要 2 分钟。

Kali Linux默认没有root账户,因此需要通过sudo命令切换获取root权限。以下是详细的操作步骤:

  • 切换到root账户

    使用sudo -i命令并输入你的账号密码,最高权限为root。在终端输入以下命令:

    sudo -i
  • 编辑SSHD配置文件

    打开/etc/ssh/sshd_config文件。使用vim或其他文本编辑器进行修改。

  • 允许root登录

    sshd_config中寻找#PermitRootLogin prohibit-password这一行,将#注释后,修改prohibit-passwordYES

    PermitRootLogin yes  ProhibitPassword yes
  • 启用密码认证

    修改PasswordAuthentication行,将#号注释,并确保其设置为YES

    PasswordAuthentication yes
  • 保存并退出编辑

    按下Esc键,输入:wq并回车,完成编辑保存。

  • 重启SSH服务

    输入以下命令重启SSH服务:

    /etc/init.d/ssh restart
  • 确认IP地址

    查看当前Kali的IP地址,确保网络配置正确。

    ip a
  • 使用Xshell或类似工具连接

    打开Xshell或其他连接工具,输入目标设备的IP地址进行连接。

  • 设置SSH开机自启

    使用systemctl命令启用SSH服务:

    systemctl enable ssh.service
  • 以上步骤将确保你的Kali Linux_system中SSHD服务支持root登录,并通过Xshell等工具实现远程连接。

    转载地址:http://bugkk.baihongyu.com/

    你可能感兴趣的文章
    Pytorch中tqdm进度条的使用
    查看>>
    Prometheus(2):SpringBoot 2.X集成Prometheus
    查看>>
    Promise 原理解析与实现(遵循Promise/A+规范)
    查看>>
    PyTorch:传递 numpy 数组进行权重初始化
    查看>>
    PyTorch-Tutorials【pytorch官方教程中英文详解】- 8 Save and Load Model
    查看>>
    promise.all是并发执行吗_攻破面试灵魂拷问,解读Java并发编程的艺术,本文带你深入l理解...
    查看>>
    PyTorch-Tutorials【pytorch官方教程中英文详解】- 7 Optimization
    查看>>
    promise总结
    查看>>
    Propel项目改为基于TensorFlow.js
    查看>>
    PyTorch-Tutorials【pytorch官方教程中英文详解】- 6 Autograd
    查看>>
    properties出现中文乱码解决方法(万能)
    查看>>
    Property 'submit' of object #<HTMLFormElement> is not a function
    查看>>
    property--staticmethod--classmethod
    查看>>
    propertyGrid
    查看>>
    propertyPlaceholderConfigurer读取配置文件
    查看>>
    PyTorch-Tutorials【pytorch官方教程中英文详解】- 5 Build Model
    查看>>
    proteus三输入与非门名字_proteus 元件名称对照表
    查看>>
    Protobuf - 语法、字段使用规则、注意事项
    查看>>
    protobuf —— 快速上手
    查看>>
    protobuf —— 认识和安装
    查看>>