You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Max Bowsher <ma...@ukf.net> on 2005/09/27 23:28:23 UTC

[1924] Does every command line SSH client support a -p (port) option?

Issue 1924 is concerned with making port specifications in svn+ssh:// URLs 
work.

At the moment, we pass the raw host:port string to the tunnel agent. 
Apparently this works for some ssh clients, but definitely not all.

There are two possible routes we could take:

(1) Hardcode a "-p PORTNUM" option into the tunnel agent invocation when the 
URL contains a port.

(2) Completely revamp the tunnel agent code to allow customizable 
interpolation of host and port into the command string.


Clearly (2) is more flexible, but is unlikely to get much use, as the 
overwhelmingly dominant tunnel agent will be ssh, so it's not clear that the 
extra complexity is worthwhile.

Your thoughts?


Max.


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

Re: [1924] Does every command line SSH client support a -p (port) option?

Posted by Joseph Galbraith <ga...@vandyke.com>.
Max Bowsher wrote:
> Issue 1924 is concerned with making port specifications in svn+ssh:// 
> URLs work.
> 
> At the moment, we pass the raw host:port string to the tunnel agent. 
> Apparently this works for some ssh clients, but definitely not all.
> 
> There are two possible routes we could take:
> 
> (1) Hardcode a "-p PORTNUM" option into the tunnel agent invocation when 
> the URL contains a port.
> 
> (2) Completely revamp the tunnel agent code to allow customizable 
> interpolation of host and port into the command string.
> 
> 
> Clearly (2) is more flexible, but is unlikely to get much use, as the 
> overwhelmingly dominant tunnel agent will be ssh, so it's not clear that 
> the extra complexity is worthwhile.
> 
> Your thoughts?

I know of some that are positional... they will allow it before 
the hostname but not after.

And at least one piece of code I use w/ svn does not currently
support -p (but I wrote it, so I guess I could change that if
I had to.)

Thanks,

Joseph

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

Re: [1924] Does every command line SSH client support a -p (port) option?

Posted by "Daniel L. Rall" <dl...@finemaltcoding.com>.
On Wed, 28 Sep 2005, Branko Čibej wrote:

> Greg Hudson wrote:
> 
> >On Wed, 2005-09-28 at 00:28 +0100, Max Bowsher wrote:
> > 
> >
> >>At the moment, we pass the raw host:port string to the tunnel agent. 
> >>Apparently this works for some ssh clients, but definitely not all.
> >>   
> >>
> >
> >I'm kind of fond of the current situation, where it's the tunnel agent's
> >problem to support user and port specifications, and not svn's problem
> >to understand how to communicate that information to all the tunnel
> >agents out there.
 
I was thinking the same thing when I skimmed over this email earlier.

> I agree. Instead of adding code to Subversion's guts, it's better to add 
> tunnel definitions and wrapper scripts to contrib/.

+1

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


Re: [1924] Does every command line SSH client support a -p (port) option?

Posted by Branko Čibej <br...@xbc.nu>.
Greg Hudson wrote:

>On Wed, 2005-09-28 at 00:28 +0100, Max Bowsher wrote:
>  
>
>>At the moment, we pass the raw host:port string to the tunnel agent. 
>>Apparently this works for some ssh clients, but definitely not all.
>>    
>>
>
>I'm kind of fond of the current situation, where it's the tunnel agent's
>problem to support user and port specifications, and not svn's problem
>to understand how to communicate that information to all the tunnel
>agents out there.
>  
>
I agree. Instead of adding code to Subversion's guts, it's better to add 
tunnel definitions and wrapper scripts to contrib/.

-- Brane


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

Re: [1924] Does every command line SSH client support a -p (port) option?

Posted by Greg Hudson <gh...@MIT.EDU>.
On Wed, 2005-09-28 at 00:28 +0100, Max Bowsher wrote:
> At the moment, we pass the raw host:port string to the tunnel agent. 
> Apparently this works for some ssh clients, but definitely not all.

I'm kind of fond of the current situation, where it's the tunnel agent's
problem to support user and port specifications, and not svn's problem
to understand how to communicate that information to all the tunnel
agents out there.


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