You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by "Tony K." <to...@gmail.com> on 2006/09/08 01:11:54 UTC

Problem using svn+ssh for non-standard port for ssh

I have my ssh port set at XXXX, and have been connecting to it with
ssh with no problems.  I am trying to set up svn on this same machine,
and when I try to use svn+ssh to checkout a project I get the
following result.

$ svn checkout svn+ssh://example.com:XXXX/path/to/repository/project/trunk
project

ssh: example.com:XXXX: Name or service not known
svn: Connection closed unexpectedly

However, if I set my port back to 22, I am successfull using the following...

svn checkout svn+ssh://example.com/path/to/repository/project/trunk project

I have also tried the following without success...

$ svn checkout svn+ssh://me@example.com:XXXX/path/to/repository/project/trunk
project

$ svn checkout --username me
svn+ssh://example.com:XXXX/path/to/repository/project/trunk project

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Problem using svn+ssh for non-standard port for ssh

Posted by "Tony K." <to...@gmail.com>.
It appears to work now.  I did not yet change the permissions of
.ssh/config, but still on 644.  Perhaps I did not restart my shell on
my client last time I tried.

Today, I tried svn+ssh by defining the port again...

svn checkout svn+ssh://example.com:XXXX/path/to/repository/project/trunk project

but it still would not work, but when I removed the port number...

$ svn checkout svn+ssh://example.com/path/to/repository/project/trunk project

...this now works!

Thanks

On 9/8/06, Chris Seawood <cl...@seawood.org> wrote:
> It's the config for the client.  Make sure that the permissions on the
> file are 600.
>
> Tony K. wrote:
> > Is this config for the client or server?
> >
> > I tried putting that in both the client and server machine (and
> > restarted sshd on the server) but still does not work.
> >
> >
> > On 9/7/06, Chris Seawood <cl...@seawood.org> wrote:
> >> Tony K. wrote:
> >> > I have my ssh port set at XXXX, and have been connecting to it with
> >> > ssh with no problems.  I am trying to set up svn on this same machine,
> >> > and when I try to use svn+ssh to checkout a project I get the
> >> > following result.
> >> >
> >> > $ svn checkout
> >> svn+ssh://example.com:XXXX/path/to/repository/project/trunk
> >> > project
> >> >
> >> > ssh: example.com:XXXX: Name or service not known
> >> > svn: Connection closed unexpectedly
> >> >
> >> > However, if I set my port back to 22, I am successfull using the
> >> > following...
> >> >
> >> > svn checkout svn+ssh://example.com/path/to/repository/project/trunk
> >> project
> >> >
> >> > I have also tried the following without success...
> >> >
> >> > $ svn checkout
> >> > svn+ssh://me@example.com:XXXX/path/to/repository/project/trunk
> >> > project
> >> >
> >> > $ svn checkout --username me
> >> > svn+ssh://example.com:XXXX/path/to/repository/project/trunk project
> >>
> >> Try adding this to your ~/.ssh/config :
> >> # begin
> >> Host example.com
> >>         Port XXXX
> >>         User me
> >> #end
> >>
> >> - cls
> >>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Problem using svn+ssh for non-standard port for ssh

Posted by Chris Seawood <cl...@seawood.org>.
Tony K. wrote:
> I have my ssh port set at XXXX, and have been connecting to it with
> ssh with no problems.  I am trying to set up svn on this same machine,
> and when I try to use svn+ssh to checkout a project I get the
> following result.
> 
> $ svn checkout svn+ssh://example.com:XXXX/path/to/repository/project/trunk
> project
> 
> ssh: example.com:XXXX: Name or service not known
> svn: Connection closed unexpectedly
> 
> However, if I set my port back to 22, I am successfull using the
> following...
> 
> svn checkout svn+ssh://example.com/path/to/repository/project/trunk project
> 
> I have also tried the following without success...
> 
> $ svn checkout
> svn+ssh://me@example.com:XXXX/path/to/repository/project/trunk
> project
> 
> $ svn checkout --username me
> svn+ssh://example.com:XXXX/path/to/repository/project/trunk project

Try adding this to your ~/.ssh/config :
# begin
Host example.com
	Port XXXX
        User me
#end

- cls

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org