kail linux 配置ssh远程登录

史沛思
2022-09-21 / 0 评论 / 50 阅读 / 正在检测是否收录...
  1. 设置root密码

    sudo passwd root
  2. 修改ssh配置文件

     vim   /etc/ssh/sshd_config   ##编辑ssh配置文件` 
     找到passworAuthentication  选项,删掉注释,后面改为yes
     找到permitRootLogin  yes  选项,删掉注释
    :wq保存退出
  3. 启动ssh服务

    /etc/init.d/ssh start

    或者

     service ssh start

    开机自启

     update-rc.d ssh enable
  4. 查看ssh服务状态

     /etc/init.d/ssh status

    如果为active即代表服务开启成功

0

评论 (0)

取消