簡體   English   中英

sshuttle 連接錯誤:packet_write_wait:連接到<server>端口 22:損壞的 pipe (archlinux)</server>

[英]sshuttle connection error : packet_write_wait: Connection to <server> port 22: Broken pipe (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 )。 為我工作。

我有一個類似的問題,雖然我沒有致命的錯誤。 連接后Sshuttle會立即凍結,客戶端或服務器上沒有錯誤消息。 結果我的手機的熱點VPN設​​置阻止了sshuttle。 不是實際的VPN,而是“killswitch”設置。

我之前從未遇到過任何問題,但我的VPN應用程序始終在更新和添加新功能。

關閉“自動killswitch”又名“無VPN連接”解決了這個問題。 現在我所有的其他軟件都運行得更好。

希望能幫助別人。

(sshuttle是解決我的其他問題的方法,或者killswitch也影響了其他軟件功能,也許后者更可能是解釋。很高興我首先嘗試修復sshuttle。)

試試這個

sshuttle -vNr user@remote-ip  0.0.0.0/0 -x remote-ip/32

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM