解决ssh连接提示Connection closed by xx
来源:互联网 发布:淘宝大v达人怎么申请 编辑:程序博客网 时间:2024/06/08 10:24
解决ssh连接提示Connection closed by xx
某一天ssh连接外网的一个服务器A,突然连不了了,会提示:Connection closed by A的ip,连局域网内的一台服务器B却没有问题,(机子均为linux)
服务器B上ssh连接A没有问题,但是无法用scp传文件给A,传输会一直挂住。
改了各种配置文件,没有解决。
输出信息如下:
ssh -v a@10.80.97.241
OpenSSH_6.6.1, OpenSSL 1.0.1k-fips 8 Jan 2015
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 20: Applying options for *
debug1: Connecting to 10.80.97.241 [10.80.97.241] port 22.
debug1: Connection established.
debug1: identity file /home/zengming/.ssh/id_rsa type -1
debug1: identity file /home/zengming/.ssh/id_rsa-cert type -1
debug1: identity file /home/zengming/.ssh/id_dsa type -1
debug1: identity file /home/zengming/.ssh/id_dsa-cert type -1
debug1: identity file /home/zengming/.ssh/id_ecdsa type -1
debug1: identity file /home/zengming/.ssh/id_ecdsa-cert type -1
debug1: identity file /home/zengming/.ssh/id_ed25519 type -1
debug1: identity file /home/zengming/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.6.1
debug1: Remote protocol version 2.0, remote software version OpenSSH_6.4
debug1: match: OpenSSH_6.4 pat OpenSSH* compat 0x04000000
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-md5-etm@openssh.com none
debug1: kex: client->server aes128-ctr hmac-md5-etm@openssh.com none
debug1: sending SSH2_MSG_KEX_ECDH_INIT
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
Connection closed by 10.80.97.241
后面在本机上修改了mtu为1500以下就好了:
sudo ifconfig enp0s25 mtu 1200
作者:帅得不敢出门 程序员群:31843264
某一天ssh连接外网的一个服务器A,突然连不了了,会提示:Connection closed by A的ip,连局域网内的一台服务器B却没有问题,(机子均为linux)
服务器B上ssh连接A没有问题,但是无法用scp传文件给A,传输会一直挂住。
改了各种配置文件,没有解决。
输出信息如下:
ssh -v a@10.80.97.241
OpenSSH_6.6.1, OpenSSL 1.0.1k-fips 8 Jan 2015
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 20: Applying options for *
debug1: Connecting to 10.80.97.241 [10.80.97.241] port 22.
debug1: Connection established.
debug1: identity file /home/zengming/.ssh/id_rsa type -1
debug1: identity file /home/zengming/.ssh/id_rsa-cert type -1
debug1: identity file /home/zengming/.ssh/id_dsa type -1
debug1: identity file /home/zengming/.ssh/id_dsa-cert type -1
debug1: identity file /home/zengming/.ssh/id_ecdsa type -1
debug1: identity file /home/zengming/.ssh/id_ecdsa-cert type -1
debug1: identity file /home/zengming/.ssh/id_ed25519 type -1
debug1: identity file /home/zengming/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.6.1
debug1: Remote protocol version 2.0, remote software version OpenSSH_6.4
debug1: match: OpenSSH_6.4 pat OpenSSH* compat 0x04000000
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-md5-etm@openssh.com none
debug1: kex: client->server aes128-ctr hmac-md5-etm@openssh.com none
debug1: sending SSH2_MSG_KEX_ECDH_INIT
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
Connection closed by 10.80.97.241
后面在本机上修改了mtu为1500以下就好了:
sudo ifconfig enp0s25 mtu 1200
作者:帅得不敢出门 程序员群:31843264
0 0
- 解决ssh连接提示Connection closed by xx
- ssh连接提示 "Connection closed by remote host"
- ssh连接提示 "Connection closed by remote host"
- ssh连接提示 "Connection closed by remote host"
- 解决SSH连接时提示server responded connection closed
- ssh 提示Connection closed by * 的解决方案
- SSH连接服务器报ssh_exchange_identification: Connection closed by remote host
- ssh连接报Connection closed by foreign host.
- SSH无法连接:Connection closed by foreign host
- SSH连接服务器报ssh_exchange_identification: Connection closed by remote host
- 解决ssh中的”Connection closed by 10.0.0.21“问题
- 【ubuntu】ssh连接ubuntu虚拟机被拒Connection closed by foreign host.
- xshell连接虚拟机上CentOS7提示Connection closed by foreign host
- SSH连接阿里云错误:Connection reset by peer解决
- ssh 连接异常解决纪实(Shared connection to xxx.xxx.xxx.xxx closed.)
- ssh问题:ssh_exchange_identification: Connection closed by remote host
- ssh问题:ssh_exchange_identification: Connection closed by remote host...
- ssh问题:ssh_exchange_identification: Connection closed by remote host...
- Tomcat的valve、filter和servlet的执行顺序
- node.js自学笔记(5)-module
- windows 7 docker oralce安装和使用
- MATLAB画图常用调整代码
- Javascript URL 编码区别及转义字符处理
- 解决ssh连接提示Connection closed by xx
- Android开发中使用adb shell命令出现sqlite3 : not found 问题
- 内存管理第二谈:内存分配机制
- 跟hoowa学做智能路由(五):熟悉OpenWRT
- 程序员自我修养第三章__ELF文件
- Root你的设备(二)
- php中的 $_GET 、$GLOBALS['HTTP_ROW_POST_DATA'] 、php://input 这三者的区别之处
- 第三届蓝桥杯决赛c++b组
- html转存pdf