[NBLUG/talk] asking for a bit of git ssh help

Eric Eisenhart eric at nblug.org
Sun May 10 11:24:04 PDT 2015


Alex,

You can either put this into ~/.ssh/config:

Host git.example.org
    Port 5122

Or use a clone like this:

git clone ssh://user@git.example.org:5222/opt/git/myproject.git

The first one simply configures your ssh to know what port to default to
when connecting to git.example.org. The second one switches to the "URL"
syntax of git, which has more options in its syntax.

On Sun, May 10, 2015 at 11:15 AM, Alex Kleider <akleider at sonic.net> wrote:

> I want to use the following git command:
>
> git clone user at git.example.org:/opt/git/myproject.git
>
> The problem is that git.example.org has its ssh pinhole open on
> port 5122 rather than the standard ssh port of 22.
>
>
> Where do I indicate that?
>
> Thanks for any help.
> Alex
>
> ps Yes, I know that 'security by obscurity' often => derision:-)
> Speaking of security by obscurity, I've heard some pundits
> express the opinion that it's not a bad thing and in fact does
> add a level of security but that it's only bad if it's used
> instead of all the other standard mechanisms rather than in
> addition to.  In my case, the server is behind the router
> so the unconventional port is only for the benefit of the
> router which then 'NAT's the packet to the server on the local
> network and the server itself is using the conventional 22 ssh port.
>
> _______________________________________________
> talk mailing list
> talk at nblug.org
> http://nblug.org/cgi-bin/mailman/listinfo/talk
>



-- 
Eric Eisenhart <*@eric.eisenhart.name>
http://eric.eisenhart.name/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nblug.org/pipermail/talk/attachments/20150510/c1c2e3be/attachment.html>


More information about the talk mailing list