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

    你可能感兴趣的文章
    npm学习(十一)之package-lock.json
    查看>>
    npm安装 出现 npm ERR! code ETIMEDOUT npm ERR! syscall connect npm ERR! errno ETIMEDOUT npm ERR! 解决方法
    查看>>
    npm安装crypto-js 如何安装crypto-js, python爬虫安装加解密插件 找不到模块crypto-js python报错解决丢失crypto-js模块
    查看>>
    npm安装教程
    查看>>
    npm报错Cannot find module ‘webpack‘ Require stack
    查看>>
    npm报错Failed at the node-sass@4.14.1 postinstall script
    查看>>
    npm报错fatal: Could not read from remote repository
    查看>>
    npm报错File to import not found or unreadable: @/assets/styles/global.scss.
    查看>>
    npm报错TypeError: this.getOptions is not a function
    查看>>
    npm报错unable to access ‘https://github.com/sohee-lee7/Squire.git/‘
    查看>>
    npm淘宝镜像过期npm ERR! request to https://registry.npm.taobao.org/vuex failed, reason: certificate has ex
    查看>>
    npm版本过高问题
    查看>>
    npm的“--force“和“--legacy-peer-deps“参数
    查看>>
    npm的安装和更新---npm工作笔记002
    查看>>
    npm的常用操作---npm工作笔记003
    查看>>
    npm的常用配置项---npm工作笔记004
    查看>>
    npm的问题:config global `--global`, `--local` are deprecated. Use `--location=global` instead 的解决办法
    查看>>
    npm编译报错You may need an additional loader to handle the result of these loaders
    查看>>
    npm设置淘宝镜像、升级等
    查看>>
    npm设置源地址,npm官方地址
    查看>>