Bug 955 - ssh -h " Displayed as illegal options " in SSH 3.9
Summary: ssh -h " Displayed as illegal options " in SSH 3.9
Status: CLOSED WONTFIX
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: ssh (show other bugs)
Version: 3.9p1
Hardware: All All
: P2 normal
Assignee: OpenSSH Bugzilla mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-20 18:04 AEDT by Ashok
Modified: 2006-10-07 11:38 AEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ashok 2004-11-20 18:04:34 AEDT
In Openssh 3.9 We have Option -h ( Basic help )  dispalyed in the SSH Usage as 
well as SSH man page 
But when we try this as "ssh -h" , 
we are get Message as  "ssh: illegal option -- h"  log given below 

# ssh -h
ssh: illegal option -- h
usage: ssh [-1246AaCfghkMNnqsTtVvXxY] [-b bind_address] [-c cipher_spec]
           [-D port] [-e escape_char] [-F configfile] [-i identity_file]
           [-L port:host:hostport] [-l login_name] [-m mac_spec] [-o option]
           [-p port] [-R port:host:hostport] [-S ctl] [user@]hostname [command]

To avoid this we have include the 'h' character in getopt( ) as given below   

In ssh.c # 

242          while ((opt = getopt(ac, av,
243          "1246ab:c:e:fgi:hkl:m:no:p:qstvxACD:F:I:L:MNPR:S:TVXY")) != -1) {
244                  switch (opt) {
Comment 1 Damien Miller 2004-12-06 16:53:07 AEDT
No, the '-h' option isn't in ssh's commandline. Rather, it is in the commandline
opened by ~C at runtime. 

Yes, this is a little confusing, but I think it would be best fixed by
clarifying the manual page rather than adding another option to ssh (we already
use most of the letters of the alphabet!)
Comment 2 Darren Tucker 2006-10-07 11:38:00 AEST
Change all RESOLVED bug to CLOSED with the exception of the ones fixed post-4.4.