Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ssh blocked when git fetch #12240

Open
1 of 2 tasks
dribble-njr opened this issue Nov 5, 2024 · 4 comments
Open
1 of 2 tasks

ssh blocked when git fetch #12240

dribble-njr opened this issue Nov 5, 2024 · 4 comments

Comments

@dribble-njr
Copy link

dribble-njr commented Nov 5, 2024

Windows Version

Windows 版本: 10.0.26100.2033

WSL Version

WSL 版本: 2.3.24.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

Linux version 5.15.153.1-microsoft-standard-WSL2

Distro Version

Ubuntu 24.04

Other Software

WSL 版本: 2.3.24.0
内核版本: 5.15.153.1-2
WSLg 版本: 1.0.65
MSRDC 版本: 1.2.5620
Direct3D 版本: 1.611.1-81528511
DXCore 版本: 10.0.26100.1-240331-1435.ge-release
Windows 版本: 10.0.26100.2033

Repro Steps

In WSL2, my setting is here, I use mirrored network mode and set proxy in WSL2.

Image

I have configure ssh and have been authenticated.

Image

But when I run git pull, it will be blocked by unknown reason.

Image

I can git pull via https, but can't work via ssh. And strangely enough, it was still working fine yesterday morning.

Expected Behavior

Work fine.

Actual Behavior

It will be blocked by unknown reason.

➜  imperial-kitchen git:(feature/jwt) gf
remote: Enumerating objects: 28, done.
remote: Counting objects: 100% (28/28), done.
remote: Compressing objects: 100% (6/6), done.
Timeout, server ssh.github.com not responding.
fetch-pack: unexpected disconnect while reading sideband packet
➜  imperial-kitchen git:(feature/jwt) GIT_SSH_COMMAND="ssh -vvv" git pull
OpenSSH_9.6p1 Ubuntu-3ubuntu13.5, OpenSSL 3.0.13 30 Jan 2024
debug1: Reading configuration data /home/njr/.ssh/config
debug1: /home/njr/.ssh/config line 1: Applying options for github.com
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 *
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -> '/home/njr/.ssh/known_hosts'
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> '/home/njr/.ssh/known_hosts2'
debug2: resolving "ssh.github.com" port 443
debug3: resolve_host: lookup ssh.github.com:443
debug3: channel_clear_timeouts: clearing
debug3: ssh_connect_direct: entering
debug1: Connecting to ssh.github.com [20.205.243.160] port 443.
debug3: set_sock_tos: set socket 3 IP_TOS 0x10
debug1: Connection established.
debug1: identity file /home/njr/.ssh/id_ed25519 type 3
debug1: identity file /home/njr/.ssh/id_ed25519-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_9.6p1 Ubuntu-3ubuntu13.5
debug1: Remote protocol version 2.0, remote software version babeld-3768aff3c
debug1: compat_banner: no match: babeld-3768aff3c
debug2: fd 3 setting O_NONBLOCK
debug1: Authenticating to ssh.github.com:443 as 'git'
debug3: put_host_port: [ssh.github.com]:443
debug3: record_hostkey: found key type ED25519 in file /home/njr/.ssh/known_hosts:1
debug3: record_hostkey: found key type RSA in file /home/njr/.ssh/known_hosts:2
debug3: record_hostkey: found key type ECDSA in file /home/njr/.ssh/known_hosts:3
debug3: load_hostkeys_file: loaded 3 keys from [ssh.github.com]:443
debug1: load_hostkeys: fopen /home/njr/.ssh/known_hosts2: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
debug3: order_hostkeyalgs: have matching best-preference key type [email protected], using HostkeyAlgorithms verbatim
debug3: send packet: type 20
debug1: SSH2_MSG_KEXINIT sent
debug3: receive packet: type 20
debug1: SSH2_MSG_KEXINIT received
debug2: local client KEXINIT proposal
debug2: KEX algorithms: [email protected],curve25519-sha256,[email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256,ext-info-c,[email protected]
debug2: host key algorithms: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,[email protected],[email protected],rsa-sha2-512,rsa-sha2-256
debug2: ciphers ctos: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected]
debug2: ciphers stoc: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected]
debug2: MACs ctos: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: MACs stoc: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: compression ctos: none,[email protected],zlib
debug2: compression stoc: none,[email protected],zlib
debug2: languages ctos:
debug2: languages stoc:
debug2: first_kex_follows 0
debug2: reserved 0
debug2: peer server KEXINIT proposal
debug2: KEX algorithms: curve25519-sha256,[email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,[email protected]
debug2: host key algorithms: ssh-ed25519,ecdsa-sha2-nistp256,rsa-sha2-512,rsa-sha2-256,ssh-rsa
debug2: ciphers ctos: [email protected],[email protected],[email protected],aes256-ctr,aes192-ctr,aes128-ctr
debug2: ciphers stoc: [email protected],[email protected],[email protected],aes256-ctr,aes192-ctr,aes128-ctr
debug2: MACs ctos: [email protected],[email protected],hmac-sha2-512,hmac-sha2-256
debug2: MACs stoc: [email protected],[email protected],hmac-sha2-512,hmac-sha2-256
debug2: compression ctos: none,[email protected],zlib
debug2: compression stoc: none,[email protected],zlib
debug2: languages ctos:
debug2: languages stoc:
debug2: first_kex_follows 0
debug2: reserved 0
debug3: kex_choose_conf: will use strict KEX ordering
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: ssh-ed25519
debug1: kex: server->client cipher: [email protected] MAC: <implicit> compression: none
debug1: kex: client->server cipher: [email protected] MAC: <implicit> compression: none
debug3: send packet: type 30
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug3: receive packet: type 31
debug1: SSH2_MSG_KEX_ECDH_REPLY received
debug1: Server host key: ssh-ed25519 SHA256:+DiY3wvvV6TuJJhbpZisF/zLDA0zPMSvHdkr4UvCOqU
debug3: put_host_port: [20.205.243.160]:443
debug3: put_host_port: [ssh.github.com]:443
debug3: record_hostkey: found key type ED25519 in file /home/njr/.ssh/known_hosts:1
debug3: record_hostkey: found key type RSA in file /home/njr/.ssh/known_hosts:2
debug3: record_hostkey: found key type ECDSA in file /home/njr/.ssh/known_hosts:3
debug3: load_hostkeys_file: loaded 3 keys from [ssh.github.com]:443
debug1: load_hostkeys: fopen /home/njr/.ssh/known_hosts2: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
debug1: Host '[ssh.github.com]:443' is known and matches the ED25519 host key.
debug1: Found key in /home/njr/.ssh/known_hosts:1
debug3: send packet: type 21
debug1: ssh_packet_send2_wrapped: resetting send seqnr 3
debug2: ssh_set_newkeys: mode 1
debug1: rekey out after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug3: receive packet: type 21
debug1: ssh_packet_read_poll2: resetting read seqnr 3
debug1: SSH2_MSG_NEWKEYS received
debug2: ssh_set_newkeys: mode 0
debug1: rekey in after 134217728 blocks
debug3: send packet: type 5
debug3: receive packet: type 7
debug1: SSH2_MSG_EXT_INFO received
debug3: kex_input_ext_info: extension server-sig-algs
debug1: kex_ext_info_client_parse: server-sig-algs=<[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],ssh-ed25519,ecdsa-sha2-nistp521,ecdsa-sha2-nistp384,ecdsa-sha2-nistp256,rsa-sha2-512,rsa-sha2-256,ssh-rsa>
debug3: receive packet: type 6
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug3: send packet: type 50
debug3: receive packet: type 51
debug1: Authentications that can continue: publickey
debug3: start over, passed a different list publickey
debug3: preferred gssapi-with-mic,publickey,keyboard-interactive,password
debug3: authmethod_lookup publickey
debug3: remaining preferred: keyboard-interactive,password
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Will attempt key: /home/njr/.ssh/id_ed25519 ED25519 SHA256:T4lnwzz+3HQTet7mcMdycGvuvV0ea8KptbopCZbCQGE explicit
debug2: pubkey_prepare: done
debug1: Offering public key: /home/njr/.ssh/id_ed25519 ED25519 SHA256:T4lnwzz+3HQTet7mcMdycGvuvV0ea8KptbopCZbCQGE explicit
debug3: send packet: type 50
debug2: we sent a publickey packet, wait for reply
debug3: receive packet: type 60
debug1: Server accepts key: /home/njr/.ssh/id_ed25519 ED25519 SHA256:T4lnwzz+3HQTet7mcMdycGvuvV0ea8KptbopCZbCQGE explicit
debug3: sign_and_send_pubkey: using publickey with ED25519 SHA256:T4lnwzz+3HQTet7mcMdycGvuvV0ea8KptbopCZbCQGE
debug3: sign_and_send_pubkey: signing using ssh-ed25519 SHA256:T4lnwzz+3HQTet7mcMdycGvuvV0ea8KptbopCZbCQGE
debug3: send packet: type 50
debug3: receive packet: type 52
Authenticated to ssh.github.com ([20.205.243.160]:443) using "publickey".
debug2: fd 4 setting O_NONBLOCK
debug2: fd 5 setting O_NONBLOCK
debug1: channel 0: new session [client-session] (inactive timeout: 0)
debug3: ssh_session2_open: channel_new: 0
debug2: channel 0: send open
debug3: send packet: type 90
debug1: Entering interactive session.
debug1: pledge: filesystem
debug3: client_repledge: enter
debug3: receive packet: type 80
debug1: client_input_global_request: rtype [email protected] want_reply 0
debug3: client_input_hostkeys: received RSA key SHA256:uNiVztksCsDhcc0u9e8BujQXVUpKZIDTMczCvj3tD2s
debug3: client_input_hostkeys: received ECDSA key SHA256:p2QAMXNIC1TJYWeIOttrVc98/R1BUFWu3/LiyKgUfQM
debug3: client_input_hostkeys: received ED25519 key SHA256:+DiY3wvvV6TuJJhbpZisF/zLDA0zPMSvHdkr4UvCOqU
debug3: put_host_port: [ssh.github.com]:443
debug1: client_input_hostkeys: searching /home/njr/.ssh/known_hosts for [ssh.github.com]:443 / (none)
debug3: hostkeys_foreach: reading file "/home/njr/.ssh/known_hosts"
debug3: hostkeys_find: found ssh-ed25519 key at /home/njr/.ssh/known_hosts:1
debug3: hostkeys_find: found ssh-rsa key at /home/njr/.ssh/known_hosts:2
debug3: hostkeys_find: found ecdsa-sha2-nistp256 key at /home/njr/.ssh/known_hosts:3
debug1: client_input_hostkeys: searching /home/njr/.ssh/known_hosts2 for [ssh.github.com]:443 / (none)
debug1: client_input_hostkeys: hostkeys file /home/njr/.ssh/known_hosts2 does not exist
debug3: client_input_hostkeys: 3 server keys: 0 new, 3 retained, 0 incomplete match. 0 to remove
debug1: client_input_hostkeys: no new or deprecated keys from server
debug3: client_repledge: enter
debug3: receive packet: type 91
debug2: channel_input_open_confirmation: channel 0: callback start
debug2: fd 3 setting TCP_NODELAY
debug3: set_sock_tos: set socket 3 IP_TOS 0x08
debug2: client_session2_setup: id 0
debug1: Sending environment.
debug3: Ignored env HTTPS_PROXY
debug3: Ignored env GIT_SSH_COMMAND
debug3: Ignored env USER
debug3: Ignored env no_proxy
debug3: Ignored env GIT_EXEC_PATH
debug3: Ignored env SHLVL
debug3: Ignored env WT_PROFILE_ID
debug3: Ignored env HOME
debug3: Ignored env LESS
debug3: Ignored env OLDPWD
debug3: Ignored env NO_PROXY
debug3: Ignored env LSCOLORS
debug3: Ignored env ZSH
debug3: Ignored env PAGER
debug3: Ignored env FNM_ARCH
debug3: Ignored env DBUS_SESSION_BUS_ADDRESS
debug3: Ignored env WSL_DISTRO_NAME
debug3: Ignored env FNM_LOGLEVEL
debug3: Ignored env FNM_VERSION_FILE_STRATEGY
debug3: Ignored env WAYLAND_DISPLAY
debug3: Ignored env https_proxy
debug3: Ignored env LOGNAME
debug3: Ignored env FNM_NODE_DIST_MIRROR
debug3: Ignored env NAME
debug3: Ignored env PULSE_SERVER
debug3: Ignored env WSL_INTEROP
debug3: Ignored env _
debug3: Ignored env http_proxy
debug1: channel 0: setting env GIT_PROTOCOL = "version=2"
debug2: channel 0: request env confirm 0
debug3: send packet: type 98
debug3: Ignored env TERM
debug3: Ignored env PATH
debug3: Ignored env WT_SESSION
debug3: Ignored env XDG_RUNTIME_DIR
debug3: Ignored env DISPLAY
debug1: channel 0: setting env LANG = "C.UTF-8"
debug2: channel 0: request env confirm 0
debug3: send packet: type 98
debug3: Ignored env FNM_DIR
debug3: Ignored env LS_COLORS
debug3: Ignored env FNM_RESOLVE_ENGINES
debug3: Ignored env SHELL
debug3: Ignored env GIT_REFLOG_ACTION
debug3: Ignored env FNM_MULTISHELL_PATH
debug3: Ignored env PWD
debug3: Ignored env HTTP_PROXY
debug3: Ignored env FNM_COREPACK_ENABLED
debug3: Ignored env HOSTTYPE
debug3: Ignored env WSL2_GUI_APPS_ENABLED
debug3: Ignored env WSLENV
debug1: Sending command: git-upload-pack 'dribble-njr/imperial-kitchen.git'
debug2: channel 0: request exec confirm 1
debug3: send packet: type 98
debug3: client_repledge: enter
debug1: pledge: fork
debug2: channel_input_open_confirmation: channel 0: callback done
debug2: channel 0: open confirm rwindow 32000 rmax 35000
debug3: receive packet: type 99
debug2: channel_input_status_confirm: type 99 id 0
debug2: exec request accepted on channel 0
debug2: channel 0: rcvd adjust 1248193
debug2: channel 0: read failed rfd 4 maxlen 32768: Broken pipe
debug2: channel 0: read failed
debug2: chan_shutdown_read: channel 0: (i0 o0 sock -1 wfd 4 efd 6 [write])
debug2: channel 0: input open -> drain
debug2: channel 0: ibuf empty
debug2: channel 0: send eof
debug3: send packet: type 96
debug2: channel 0: input drain -> closed
remote: Enumerating objects: 28, done.
remote: Counting objects: 100% (28/28), done.
remote: Compressing objects: 100% (6/6), done.

Diagnostic Logs

WslLogs-2024-11-06_09-02-39.zip

Copy link

github-actions bot commented Nov 5, 2024

Logs are required for review from WSL team

If this a feature request, please reply with '/feature'. If this is a question, reply with '/question'.
Otherwise please attach logs by following the instructions below, your issue will not be reviewed unless they are added. These logs will help us understand what is going on in your machine.

How to collect WSL logs

Download and execute collect-wsl-logs.ps1 in an administrative powershell prompt:

Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/microsoft/WSL/master/diagnostics/collect-wsl-logs.ps1" -OutFile collect-wsl-logs.ps1
Set-ExecutionPolicy Bypass -Scope Process -Force
.\collect-wsl-logs.ps1

The script will output the path of the log file once done.

If this is a networking issue, please use collect-networking-logs.ps1, following the instructions here

Once completed please upload the output files to this Github issue.

Click here for more info on logging
If you choose to email these logs instead of attaching to the bug, please send them to [email protected] with the number of the github issue in the subject, and in the message a link to your comment in the github issue and reply with '/emailed-logs'.

View similar issues

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!

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@dribble-njr dribble-njr changed the title git clone or git fetch is ssh blocked when git fetch Nov 5, 2024
Copy link

github-actions bot commented Nov 5, 2024

Logs are required for review from WSL team

If this a feature request, please reply with '/feature'. If this is a question, reply with '/question'.
Otherwise please attach logs by following the instructions below, your issue will not be reviewed unless they are added. These logs will help us understand what is going on in your machine.

How to collect WSL logs

Download and execute collect-wsl-logs.ps1 in an administrative powershell prompt:

Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/microsoft/WSL/master/diagnostics/collect-wsl-logs.ps1" -OutFile collect-wsl-logs.ps1
Set-ExecutionPolicy Bypass -Scope Process -Force
.\collect-wsl-logs.ps1

The script will output the path of the log file once done.

If this is a networking issue, please use collect-networking-logs.ps1, following the instructions here

Once completed please upload the output files to this Github issue.

Click here for more info on logging
If you choose to email these logs instead of attaching to the bug, please send them to [email protected] with the number of the github issue in the subject, and in the message a link to your comment in the github issue and reply with '/emailed-logs'.

View similar issues

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!

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

Copy link

github-actions bot commented Nov 6, 2024

Diagnostic information
Issue was edited and new log file was found: https://github.com/user-attachments/files/17640395/WslLogs-2024-11-06_09-02-39.zip
.wslconfig found
Detected appx version: 2.3.24.0

@dribble-njr
Copy link
Author

Hi! I've updated the original issue with more details, including:

  • Full system version information
  • Detailed error logs
  • Reproduction steps

Please let me know if any further details are needed, or if you'd like me to try anything else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant