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

    你可能感兴趣的文章
    POJ 2484 A Funny Game(神题!)
    查看>>
    POJ 2486 树形dp
    查看>>
    POJ 2488:A Knight's Journey
    查看>>
    SpringBoot为什么易学难精?
    查看>>
    poj 2545 Hamming Problem
    查看>>
    poj 2723
    查看>>
    poj 2763 Housewife Wind
    查看>>
    Qt笔记——模型/视图MVD 文件目录浏览器软件
    查看>>
    POJ 2892 Tunnel Warfare(树状数组+二分)
    查看>>
    poj 2965 The Pilots Brothers' refrigerator-1
    查看>>
    POJ 3041 - 最大二分匹配
    查看>>
    POJ 3041 Asteroids(二分匹配模板题)
    查看>>
    Qt笔记——标准文件对话框QFileDialog
    查看>>
    poj 3083 Children of the Candy Corn
    查看>>
    POJ 3083 Children of the Candy Corn 解题报告
    查看>>
    POJ 3253 Fence Repair C++ STL multiset 可解 (同51nod 1117 聪明的木匠)
    查看>>
    poj 3262 Protecting the Flowers 贪心
    查看>>
    poj 3264(简单线段树)
    查看>>
    poj 3277 线段树
    查看>>
    POJ 3349 Snowflake Snow Snowflakes
    查看>>