Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

sshuttle connection error : packet_write_wait: Connection to <server> port 22: Broken pipe (archlinux)

after last OS upgrade can't connect to server by sshuttle. it work normally for year but after upgrade get this error :

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

I had already search on google but most of it is about ClientAliveInterval, ClientAliveCountMax, ServerAliveInterval.reinstall sshuttle and reset config not help. work on ubuntu 17.10 by same config.

like image 362
damavandi Avatar asked Dec 17 '17 12:12

damavandi


1 Answers

A solution was posted on https://github.com/sshuttle/sshuttle/issues/150

Apparently one now needs to add -x <host> to the command (where <host> is server in your case). Worked for me.

like image 70
pthibault Avatar answered Oct 11 '22 00:10

pthibault