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

    你可能感兴趣的文章
    Python zip函数 详解(全)
    查看>>
    Python \r\n与\n的转换
    查看>>
    python __new__中单例的作用
    查看>>
    python | aiofiles,一个超酷的 Python 库!
    查看>>
    python | akshare,一个超强的 开源Python 金融数据接口库!
    查看>>
    python | alabaster,一个强大的 关于alabaster 主题 Python 库!
    查看>>
    python | algorithms,一个超赞的 集合常用算法的Python 库!
    查看>>
    python调用jpype 报错:OSError JVM is already started和JVM cannot be restarted
    查看>>
    python | authlib,一个强大的 Python 库!
    查看>>
    python | awswrangler,一个高效的 Python 库!
    查看>>
    python | bashplotlib,一个有趣的Python库!
    查看>>
    python | bentoml,一个超级厉害的 模型部署 Python 库!
    查看>>
    python调用jar包的模块_python调用jar包
    查看>>
    python | black,一个神奇的 代码格式化工具 Python 库!
    查看>>
    python | bleach,一个超强的 Python 库!
    查看>>
    python | cartopy,一个有趣的 Python 库!
    查看>>
    python | cloud-init,一个实用的 云计算 Python 库!
    查看>>
    python | code2flow,一个神奇的 Python 库!
    查看>>
    python | cudf,一个超实用的 Python 库!
    查看>>
    python | daphne,一个非常nice的 Python 库!
    查看>>