博客
关于我
关于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/

    你可能感兴趣的文章
    Object c将一个double值转换为时间格式
    查看>>
    object detection之Win10配置
    查看>>
    object detection训练自己数据
    查看>>
    object detection错误Message type "object_detection.protos.SsdFeatureExtractor" has no field named "bat
    查看>>
    object detection错误之Could not create cudnn handle: CUDNN_STATUS_INTERNAL_ERROR
    查看>>
    object detection错误之no module named nets
    查看>>
    Object of type 'ndarray' is not JSON serializable
    查看>>
    Object Oriented Programming in JavaScript
    查看>>
    object references an unsaved transient instance - save the transient instance before flushing
    查看>>
    Object 类的常见方法有哪些?
    查看>>
    Object-c动态特性
    查看>>
    Object.assign用法
    查看>>
    Object.create
    查看>>
    Object.defineProperty详解
    查看>>
    Object.keys()的详解和用法
    查看>>
    objectForKey与valueForKey在NSDictionary中的差异
    查看>>
    Objective - C 小谈:消息机制的原理与使用
    查看>>
    OBJECTIVE C (XCODE) 绘图功能简介(转载)
    查看>>
    Objective-C ---JSON 解析 和 KVC
    查看>>
    Objective-C 编码规范
    查看>>