#757251 [git] ssh: connect to host 2001 port 22: Invalid argument

Package:
git
Source:
git
Description:
fast, scalable, distributed revision control system
Submitter:
Timo Weingärtner
Date:
2025-06-27 10:37:02 UTC
Severity:
normal
Tags:
#757251#5
Date:
2014-08-06 16:33:14 UTC
From:
To:
Package: git
Version: 1:2.0.1-1
Severity: normal
Tags: ipv6

The first format works with git from wheezy.


Cheers
Timo

#757251#10
Date:
2025-06-27 10:28:34 UTC
From:
To:
| $ git remote -v
| brack	git+ssh://user@[2001:db8::1]/test.git (fetch)
| brack	git+ssh://user@[2001:db8::1]/test.git (push)
| plain	git+ssh://user@2001:db8::1/test.git (fetch)
| plain	git+ssh://user@2001:db8::1/test.git (push)
| port	git+ssh://user@[2001:db8::1]:22/test.gi (fetch)
| port	git+ssh://user@[2001:db8::1]:22/test.gi (push)

Fetching any of these yields “ssh: connect to host 2001:db8::1 port 22: No route to host” as it should.

On a trixie with git 1:2.47.2-0.2 the situation is the same.

(Found this in UDD as an outstanding issue for IPv6 in trixie, I hope it
is not rude to post 10 years later…)

Regards,
LEdoian