zoukankan      html  css  js  c++  java
  • xshell连接不了虚拟机处理方法(错误提示:Connection closing...Socket close.Connection closed by foreign host.Disconnected from remote host(localhost) at 08:47:23.)

    一、问题描述:xshell连接不了虚拟机,出现错误提示:Connection closing...Socket close.Connection closed by foreign host.Disconnected from remote host(localhost) at 08:47:23.

    二、查找错误原因:

    1、登录虚拟机,打开终端,切换到root用户,输入systemctl start sshd.service看能否开启sshd服务,提示开启失败,输入systemctl status sshd.service查看错误详情,提示

    failed to start openssh server daemon

    2、输入sshd -t(很有用)测试,提示/var/empty/sshd权限过大

    三、解决方法

    根据提示修改目录权限:chmod -R 755 /var/empty/

    再次登录就可以登录上了

    参考url:https://yq.aliyun.com/articles/103191?t=t1

    如果对您有帮助,请给我点个赞>∏<,有什么不正确的也麻烦指出

  • 相关阅读:
    翻转链表二
    最短路径算法
    在二叉树中插入节点
    LightOJ 1341
    串的基本操作
    链队列的基本操作
    LightOJ 1370
    poj 3060 Visible Lattice Points
    欧拉函数介绍及简单模板
    zoj 3593 One Person Game
  • 原文地址:https://www.cnblogs.com/zhengchuzhou/p/9678888.html
Copyright © 2011-2022 走看看