Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

git clone: CONNECT_CR_SRVR_HELLO:wrong version number

Tags:

git-clone

ssh

I'm trying to proxy through a jumphost, for access to github, using a VM that's outside the firewall.

git clone https://github.com/<user>/<repo> works on the VM.

I setup the jumphost on my Mac laptop's .ssh/config as:

Host vm-proxy
    HostName <vm-ip_address>
    User centos
    IdentityFile ~/.ssh/id.pem

Host githubproxy
    Hostname github.com
    ProxyJump vm-proxy

But the clone fails from the laptop:

$ git clone https://githubproxy/<user>/<repo>
Cloning into '<repo>'...
fatal: unable to access 'https://githubproxy/<user>/<repo>/': error:1400410B:SSL routines:CONNECT_CR_SRVR_HELLO:wrong version number

Versions:

MacOs: Catalina 10.15.6
git on laptop: 2.24.3 (Apple Git-128)
git on VM: 1.8.3.1
like image 932
marcsetgo Avatar asked Apr 22 '26 10:04

marcsetgo


1 Answers

:SSL routines:CONNECT_CR_SRVR_HELLO:wrong version number

That means you are sending TCP content (HTTPS) to an HTTP port or an SSH one, but not 443

And your proxyjump is for jumping to an SSH session on your VM, so it might not be a good fit for an HTTPS URL.

like image 168
VonC Avatar answered Apr 26 '26 02:04

VonC



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!