svn+ssh over nonstandard port fails to connect

Christopher Cowart ccowart at rescomp.berkeley.edu
Thu Jun 28 22:32:33 UTC 2007


On Thu, Jun 28, 2007 at 03:45:50PM -0600, Chad Perrin wrote:
> I'm attempting to connect to a Subversion repository via SSH using a
> nonstandard port to check out the repository.  The names and numbers in
> the following have been changed to protect the guilty:
> 
>   svn co svn+ssh://user@123.45.678.90:1234/usr/home/svn-repos/project project

Try:

SVN_SSH="ssh -p 1234" svn co svn+ssh://user@host/path

> The result I get is as follows:
> 
>   ssh: 123.45.678.90:1234: hostname nor servname provided, or not known
>   svn: Connection closed unexpectedly
> 
> Am I having a brainless moment here?  What am I missing?

ssh doesn't support the hostname:port syntax. You have to use -p.

Hope that helps,

-- 
Chris Cowart
Lead Systems Administrator
Network Infrastructure, RSSP-IT
UC Berkeley
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20070628/e44abea7/attachment.pgp


More information about the freebsd-questions mailing list