Skip to content

WSL2 SSH Git Commands Hang During Key Exchange, Partially Improved by Lowering MTU #31320

Description

@Nimafeli

Checks

Describe your suggestion

Inside WSL2, Git commands that use SSH either become extremely slow or hang when connecting to GitHub. SSH establishes the TCP connection but usually gets stuck during key exchange at expecting SSH2_MSG_KEX_ECDH_REPLY, while HTTPS and Git from Windows PowerShell work normally. Lowering the MTU gave me a partial workaround, but it did not fully solve the issue.

Path

Foundations

Lesson Url

https://www.theodinproject.com/lessons/foundations-git-basics

(Optional) Discord Name

No response

(Optional) Additional Comments

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions