openssh continues to process dash arguements after hostname

Mark Andrews Mark_Andrews at isc.org
Wed Apr 28 11:09:18 EST 2004


> On Wed, 28 Apr 2004, Mark Andrews wrote:
> 
> > 
> > Processing dash arguments after the hostname is inconsistant with 
> > getopt() usage.  It is also inconsistant with other ssh/rsh 
> > implementations.  It is also not documented.
> > 
> > openssh accepts treats "ssh host -l user" as "ssh -l user host"
> > when infact it should be attemption to execute "-l user" on "host"
> > as the original user.
> 
> I agree that the current argument processing isn't standard, but I'm not 
> sure that trying to "execute" - options on the server side is either.
> 
> The commands are executed on the server with the user's shell, so any - 
> arguments will be treated as arguments to that shell.

	If they are treated as shell arguements then sshd is broken.
 
> If you really want this, you can use this patch:
--
Mark Andrews, ISC
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742                 INTERNET: Mark_Andrews at isc.org




More information about the openssh-unix-dev mailing list