git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* Access Git ssh on port 8822 ?
@ 2018-09-19 17:47 Leonardo Bozzi
  2018-09-19 17:50 ` Jeff King
  0 siblings, 1 reply; 4+ messages in thread
From: Leonardo Bozzi @ 2018-09-19 17:47 UTC (permalink / raw)
  To: git

Good afternoon, I'm trying to set up a git server, but I want to use
ssh access to connect clients on my server, but because of a
limitation in my internet provider it blocks access from outside on
port 22, so I changed the same from ssh to 8822. But when I give the
command:

$git remote add origin bozzi@bozzi.net:/opt/gitcurso

The server blocks me because I would have to access via port 8822. How
do I make the connection correctly?

I'm Debian user.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Access Git ssh on port 8822 ?
  2018-09-19 17:47 Access Git ssh on port 8822 ? Leonardo Bozzi
@ 2018-09-19 17:50 ` Jeff King
  2018-09-19 18:48   ` Leonardo Bozzi
  2018-09-19 20:04   ` Ævar Arnfjörð Bjarmason
  0 siblings, 2 replies; 4+ messages in thread
From: Jeff King @ 2018-09-19 17:50 UTC (permalink / raw)
  To: Leonardo Bozzi; +Cc: git

On Wed, Sep 19, 2018 at 02:47:09PM -0300, Leonardo Bozzi wrote:

> Good afternoon, I'm trying to set up a git server, but I want to use
> ssh access to connect clients on my server, but because of a
> limitation in my internet provider it blocks access from outside on
> port 22, so I changed the same from ssh to 8822. But when I give the
> command:
> 
> $git remote add origin bozzi@bozzi.net:/opt/gitcurso
> 
> The server blocks me because I would have to access via port 8822. How
> do I make the connection correctly?

You have two options:

  1. You can use the more verbose ssh URL syntax, which allows a port
     number:

       git clone ssh://bozzi@bozzi.net:8822/opt/gitcurso

  2. You can use a host block in your ~/.ssh/config to set the default
     port for that host.

       {
         echo "Host bozzi.net"
	 echo "Port 8822"
       } >>$HOME/.ssh/config

-Peff

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Access Git ssh on port 8822 ?
  2018-09-19 17:50 ` Jeff King
@ 2018-09-19 18:48   ` Leonardo Bozzi
  2018-09-19 20:04   ` Ævar Arnfjörð Bjarmason
  1 sibling, 0 replies; 4+ messages in thread
From: Leonardo Bozzi @ 2018-09-19 18:48 UTC (permalink / raw)
  To: peff; +Cc: git

Ok
       git clone ssh://bozzi@bozzi.net:8822/opt/gitcurso

access sucess.



Adm. Leonardo Bozzi
Administrador / Analista de Sistemas
Tel.:  (27) 99988-4576
CRA-ES: 13256


Em qua, 19 de set de 2018 às 14:50, Jeff King <peff@peff.net> escreveu:
>
> On Wed, Sep 19, 2018 at 02:47:09PM -0300, Leonardo Bozzi wrote:
>
> > Good afternoon, I'm trying to set up a git server, but I want to use
> > ssh access to connect clients on my server, but because of a
> > limitation in my internet provider it blocks access from outside on
> > port 22, so I changed the same from ssh to 8822. But when I give the
> > command:
> >
> > $git remote add origin bozzi@bozzi.net:/opt/gitcurso
> >
> > The server blocks me because I would have to access via port 8822. How
> > do I make the connection correctly?
>
> You have two options:
>
>   1. You can use the more verbose ssh URL syntax, which allows a port
>      number:
>
>        git clone ssh://bozzi@bozzi.net:8822/opt/gitcurso
>
>   2. You can use a host block in your ~/.ssh/config to set the default
>      port for that host.
>
>        {
>          echo "Host bozzi.net"
>          echo "Port 8822"
>        } >>$HOME/.ssh/config
>
> -Peff

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Access Git ssh on port 8822 ?
  2018-09-19 17:50 ` Jeff King
  2018-09-19 18:48   ` Leonardo Bozzi
@ 2018-09-19 20:04   ` Ævar Arnfjörð Bjarmason
  1 sibling, 0 replies; 4+ messages in thread
From: Ævar Arnfjörð Bjarmason @ 2018-09-19 20:04 UTC (permalink / raw)
  To: Jeff King; +Cc: Leonardo Bozzi, git


On Wed, Sep 19 2018, Jeff King wrote:

> On Wed, Sep 19, 2018 at 02:47:09PM -0300, Leonardo Bozzi wrote:
>
>> Good afternoon, I'm trying to set up a git server, but I want to use
>> ssh access to connect clients on my server, but because of a
>> limitation in my internet provider it blocks access from outside on
>> port 22, so I changed the same from ssh to 8822. But when I give the
>> command:
>> 
>> $git remote add origin bozzi@bozzi.net:/opt/gitcurso
>> 
>> The server blocks me because I would have to access via port 8822. How
>> do I make the connection correctly?
>
> You have two options:
>
>   1. You can use the more verbose ssh URL syntax, which allows a port
>      number:
>
>        git clone ssh://bozzi@bozzi.net:8822/opt/gitcurso
>
>   2. You can use a host block in your ~/.ssh/config to set the default
>      port for that host.
>
>        {
>          echo "Host bozzi.net"
> 	 echo "Port 8822"
>        } >>$HOME/.ssh/config
>
> -Peff

3. GIT_SSH_COMMAND="ssh -p 8822"  git clone bozzi@bozzi.net:/opt/gitcurso

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-09-19 20:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-19 17:47 Access Git ssh on port 8822 ? Leonardo Bozzi
2018-09-19 17:50 ` Jeff King
2018-09-19 18:48   ` Leonardo Bozzi
2018-09-19 20:04   ` Ævar Arnfjörð Bjarmason

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).