linux - sshuttle 连接错误 : packet_write_wait: Connection to <server> port 22: Broken pipe (archlinux)

标签 linux ssh archlinux

上次操作系统升级后无法通过 sshuttle 连接到服务器。它正常工作一年,但升级后出现此错误:

sshuttle --dns -r root@server  0.0.0.0/0 -vv
packet_write_wait: Connection to server port 22: Broken pipe
c : Waiting: 3 r=[5, 7, 9] w=[] x=[] (fullness=14/0)
c :   Ready: 3 r=[9] w=[] x=[]
firewall manager: undoing IPv4 changes.
>> iptables -t nat -D OUTPUT -j sshuttle-12300
>> iptables -t nat -D PREROUTING -j sshuttle-12300
>> iptables -t nat -F sshuttle-12300
>> iptables -t nat -X sshuttle-12300
firewall manager: undoing /etc/hosts changes.
c : fatal: server died with error code 255

我已经在谷歌上搜索过,但大部分都是关于 ClientAliveIntervalClientAliveCountMaxServerAliveInterval 的。重新安装 sshuttle 并重置配置没有帮助。通过相同的配置在 ubuntu 17.10 上工作。

最佳答案

https://github.com/sshuttle/sshuttle/issues/150 上发布了一个解决方案

显然现在需要添加 -x <host>到命令(在您的情况下,<host>server)。为我工作。

关于linux - sshuttle 连接错误 : packet_write_wait: Connection to <server> port 22: Broken pipe (archlinux),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47855135/

相关文章:

linux - 在 Linux 中创建一个新信号

linux - 使用 RDTSC 获取 cpu 周期 - 为什么 RDTSC 的值总是增加?

shell - su -c 的 ANT SSHEXEC 密码提示问题

archlinux - 在 Arch linux 上安装全局时出错

bash - 为什么 .vimrc 不被执行?

c++ - 用合适的系统调用替换 linux 中的 ftime() 系统调用

c - 如何使用 C 使两个文件具有相同的访问时间?

git - 我在git仓库中看不到文件

linux - 在远程Linux服务器上运行本地GCC

linux - 在 Arch Linux 中使用 Tomcat 7 设置 Eclipse