I am trying to access a git respository at a IPv6 address that has a SSH server listening on port 1111(for example).
Access is controlled by SSH key and I can open a SSH session on the gitserver using
ssh git@<IPv6-address> -p 1111
(Yes, I understand that git should not get a shell, but please disregard that)
I can access the repository using IPv4 like this :
git clone git@<IPv4-address>:1111/git/tarn.git
But the IPv6 version does not work.
git clone git@<IPv6-address>:1111/git/tarn.git Cloning into 'tarn'... ssh: connect to host <IPv6 address> port 22: No route to host fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
What do I need here?