如何解决packet_write_wait:连接到@host端口22:管道断开
我正在尝试使用scp命令将某些文件从生产服务器(ubuntu 16.04)复制到备份服务器(ubuntu 16.04),但得到
packet_write_wait: Connection to @host port 22: Broken pipe
Lost connection
我尝试添加
-o ServerAliveInterval=30 -o ServerAliveCountMax=5
来自 https://superuser.com/questions/1331240/packet-write-wait-connection-to-xxx-port-3591-broken-pipe https://superuser.com/questions/1331240/packet-write-wait-connection-to-xxx-port-3591-broken-pipe https://superuser.com/questions/1137584/packet-write-wait-broken-pipe-error-on-macos-sierra-ssh 但随后开始抛出
Timeout,server @host not responding.
lost connection
我能够与备份服务器建立ssh连接,但无法复制任何文件。 指出我可以做的事情并将文件复制到备份服务器。谢谢。
我发现我可以将最大4k大小的文件/文件夹复制到备份服务器,但不能复制更大的文件。当我尝试将大文件复制到另一台服务器上但不在备份服务器上时,它可以正常工作。
解决方法
通过将LAN卡的mtu设置设置为1492,看来我找到了解决办法
key-store-password
请参阅此链接以获取更多信息:http://www.microhowto.info/howto/change_the_mtu_of_a_network_interface.html
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。