From owner-freebsd-questions@FreeBSD.ORG Thu Jun 28 23:22:56 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9571F16A400 for ; Thu, 28 Jun 2007 23:22:56 +0000 (UTC) (envelope-from ccowart@hal.rescomp.berkeley.edu) Received: from rescomp.berkeley.edu (hal.Rescomp.Berkeley.EDU [169.229.70.150]) by mx1.freebsd.org (Postfix) with ESMTP id 6C8BD13C480 for ; Thu, 28 Jun 2007 23:22:56 +0000 (UTC) (envelope-from ccowart@hal.rescomp.berkeley.edu) Received: by rescomp.berkeley.edu (Postfix, from userid 1225) id 23DCC5B77B; Thu, 28 Jun 2007 16:22:55 -0700 (PDT) Date: Thu, 28 Jun 2007 16:22:55 -0700 From: Christopher Cowart To: FreeBSD Questions Message-ID: <20070628232255.GW17271@rescomp.berkeley.edu> Mail-Followup-To: FreeBSD Questions References: <20070628214550.GA7645@demeter.hydra> <20070628221018.GV17271@rescomp.berkeley.edu> <20070628224410.GA7877@demeter.hydra> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Zgbii/ieujL2eaRx" Content-Disposition: inline In-Reply-To: <20070628224410.GA7877@demeter.hydra> Organization: RSSP-IT, UC Berkeley User-Agent: Mutt/1.5.9i Subject: Re: svn+ssh over nonstandard port fails to connect X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Jun 2007 23:22:56 -0000 --Zgbii/ieujL2eaRx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jun 28, 2007 at 04:44:10PM -0600, Chad Perrin wrote: > On Thu, Jun 28, 2007 at 03:10:18PM -0700, Christopher Cowart wrote: > > 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: > > >=20 > > > svn co svn+ssh://user@123.45.678.90:1234/usr/home/svn-repos/project= project > >=20 > > Try: > >=20 > > SVN_SSH=3D"ssh -p 1234" svn co svn+ssh://user@host/path >=20 > Are you suggesting setting an environment variable? I have more than one > repository checked out on this system, and they do not all use the same > port for access. This is the only way I know to do it. You don't have to set it in your shell's environment if you use this syntax to prefix the specific command. > > > The result I get is as follows: > > >=20 > > > ssh: 123.45.678.90:1234: hostname nor servname provided, or not kno= wn > > > svn: Connection closed unexpectedly > > >=20 > > > Am I having a brainless moment here? What am I missing? > >=20 > > ssh doesn't support the hostname:port syntax. You have to use -p. > >=20 > > Hope that helps, >=20 > I thought that might be the case, but I'm not sure how to specify it in > the svn command string -- which seems to be necessary since making a > universal (to this user account) configuration change would then break > access to other svn repositories. You can also create a "new" tunneling protocol. Look at the "SSH authentication and authorization" section of this part of the handbook: http://svnbook.red-bean.com/en/1.0/ch06s03.html Good luck, --=20 Chris Cowart Lead Systems Administrator Network Infrastructure, RSSP-IT UC Berkeley --Zgbii/ieujL2eaRx Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) iD8DBQFGhELPV3SOqjnqPh0RAvgtAJ9QKYLz0EC8jeHrl7qynvSxqFlj6gCgwBuZ HSvvkwotmY+VkSpzdrDdZWI= =Lsge -----END PGP SIGNATURE----- --Zgbii/ieujL2eaRx--