openssh continues to process dash arguements after hostname

Markus Friedl markus at openbsd.org
Wed Apr 28 10:59:05 EST 2004


On Wed, Apr 28, 2004 at 10:03:52AM +1000, 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.
> 
> It looks like someone wanted to be "compatible" with Linux's
> broken getopt() implementation.

no.

original ssh tried to be compatible with rlogin,
and since hundreds of scripts may rely on the
current behaviour...




More information about the openssh-unix-dev mailing list