Re: SSH port ignored when ssh:// prefix isn't specified

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"mqudsi@xxxxxxxxxxxx" <mqudsi@xxxxxxxxxxxx> writes:

> Basically, while `git clone ssh://git@xxxxxxxxxxx:2222/path` works, the same
> with the `ssh://` prefix doesn't, and attempts to establish a connection to
> port 22 instead: `git clone git@xxxxxxxxxxx:2222/path` (I'm not sure what it
> will do with the `:2222` should the connection actually succeed).


I don't see a simple way to distinguish between "I want to connect to
port 22 and access directory 2222/path" and "I want to connect to port
2222 and access directory path". So Git chose for you the first option
(if you replace 2222 with abcd, it clearly makes sense).

-- 
Matthieu Moy
https://matthieu-moy.fr/



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux