[Bug 955] ssh -h " Displayed as illegal options " in SSH 3.9
bugzilla-daemon at mindrot.org
bugzilla-daemon at mindrot.org
Sat Nov 20 18:04:35 EST 2004
http://bugzilla.mindrot.org/show_bug.cgi?id=955
Summary: ssh -h " Displayed as illegal options " in SSH 3.9
Product: Portable OpenSSH
Version: 3.9p1
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: ssh
AssignedTo: openssh-bugs at mindrot.org
ReportedBy: ashok at visolve.com
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) {
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the openssh-bugs
mailing list