logo logo
关于我们

技术分享

技术分享 xshell连接虚拟机Connection failed

xshell连接虚拟机Connection failed

2018-05-14

一、问题描述:xshell连接不了虚拟机,出现错误提示:Could not connect to '192.168.1.100' (port 22): Connection failed.

xshell连接虚拟机Connection failed

 

二、查找错误原因:

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

failed to start openssh server daemon

xshell连接虚拟机Connection failed

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

xshell连接虚拟机Connection failed

三、解决方法

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

xshell连接虚拟机Connection failed

再次登录就可以登录上了

xshell连接虚拟机Connection failed


云祺备份软件,云祺容灾备份系统,虚拟机备份,数据库备份,文件备份,实时备份,勒索软件,美国,图书馆
  • 标签:
  • 技术分享

您可能感兴趣的新闻 换一批

现在下载,可享30天免费试用

立即下载

请添加好友为您提供支持
jia7jia_7

请拨打电话
为您提供支持

400-9955-698