Open wang1zhen opened 5 months ago
Hi I'm an AI powered bot that finds similar issues based off the issue title.
Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!
Note: You can give me feedback by thumbs upping or thumbs downing this comment.
@wang1zhen since it fails with set socket 3 IP_TOS 0x10
try connecting with ssh -o IPQoS=none
and see if it works.
From the ssh_config
man page:
IPQoS
Specifies the IPv4 type-of-service or DSCP class for connections. Accepted values are af11, af12, af13, af21, af22, af23, af31, af32,
af33, af41, af42, af43, cs0, cs1, cs2, cs3, cs4, cs5, cs6, cs7, ef, le, lowdelay, throughput, reliability, a numeric value,
or none to use the operating system default. This option may take one or two arguments, separated by whitespace.
If one argument is specified, it is used as the packet class unconditionally. If two values are specified, the first is
automatically selected for interactive sessions and the second for non-interactive sessions. The default is af21
(Low-Latency Data) for interactive sessions and cs1 (Lower Effort) for non-interactive sessions.
ssh -o IPQoS=none
SSH now hangs here:
ssh -vvv -o IPQoS=none 192.168.145.130
OpenSSH_9.2p1 Debian-2+deb12u2, OpenSSL 3.0.11 19 Sep 2023
debug1: Reading configuration data /home/wang1zhen/.ssh/config
debug1: /home/wang1zhen/.ssh/config line 20: Applying options for *
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/*.conf matched no files
debug1: /etc/ssh/ssh_config line 21: Applying options for *
debug2: resolve_canonicalize: hostname 192.168.145.130 is address
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -> '/home/wang1zhen/.ssh/known_hosts'
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> '/home/wang1zhen/.ssh/known_hosts2'
debug3: ssh_connect_direct: entering
debug1: Connecting to 192.168.145.130 [192.168.145.130] port 22.
Hi. Can you please collect networking logs by following the instructions below? https://github.com/microsoft/WSL/blob/master/CONTRIBUTING.md#collect-wsl-logs-for-networking-issues
WslNetworkingLogs-2024-02-09_13-04-47.zip
I have uploaded the networking logs according to the instructions here.
Windows Version
Microsoft Windows [Version 10.0.22631.3085]
WSL Version
WSL version: 2.0.14.0 Kernel version: 5.15.133.1-1 WSLg version: 1.0.59 MSRDC version: 1.2.4677 Direct3D version: 1.611.1-81528511 DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp Windows version: 10.0.22631.3085
Are you using WSL 1 or WSL 2?
Kernel Version
Linux version 5.15.133.1-microsoft-standard-WSL2 (root@1c602f52c2e4) (gcc (GCC) 11.2.0, GNU ld (GNU Binutils) 2.37) #1 SMP Thu Oct 5 21:02:42 UTC 2023
Distro Version
Debian 12
Other Software
VMware® Workstation 17 Pro, 17.5.0 build-22583795
Repro Steps
Start vm (ubuntu 20.04) and start ssh service on it.
ip address info:
ssh from wsl2:
.wslconfig
Expected Behavior
wsl2 ssh to vmware ubuntu successfully.
Actual Behavior
ssh hangs
However,
ssh.exe 192.168.145.130
from windows host or wsl2 both works:Diagnostic Logs
No response