使用xshell-ssh连接服务器,报错:Xshell Socket error Event: 32 Error: 10053

本文介绍了在使用Xshell连接Linux服务器时遇到的Socket错误,详细讨论了三种解决方法:1) 修改sshd_config文件设置ClientAliveInterval和ClientAliveCountMax;2) 调整Xshell客户端的Keep Alive配置;3) 设置服务器静态IP地址。尽管前两种方法未解决问题,但通过手动配置固定IP最终解决了连接断开的问题。
摘要由CSDN通过智能技术生成

一、问题描述

今天在用 xshell 连接虚拟机进行操作的时候,没过多久就自动断开了,并打印了如下错误:

Socket error Event: 32 Error: 10053.
Connection closing...Socket close.

Connection closed by foreign host.

Disconnected from remote host(CentOS) at 23:05:35.

Type `help' to learn how to use Xshell prompt.
[C:\~]$ 

开始我以为只是网络问题,重新尝试连接依然能够连接,但是过了一会又自动断开。

二、问题处理

  • 解决方法一:
[beetle@localhost ~]$ cd /etc/ssh/
[beetle@localhost ssh]$ ll
总用量 604
-rw-r--r--. 1 root root     581843 4月  11 2018 moduli
-rw-r--r--. 1 root root       2276 4月  11 2018 ssh_config
-rw-r--r--. 1 root root       3951 7月  25 23:12 sshd_config
-rw-------. 1 root ssh_keys    227 9月  13 2018 ssh_host_ecdsa_key
-rw-r--r--. 1 root root        162 9月  13 2018 ssh_host_ecdsa_key.pub
-rw-r--r--. 1 root ssh_keys    387 9月  13 2018 ssh_h
  • 1
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值