bugzilla-daemon at mindrot.org
2004-Nov-20 07:04 UTC
[Bug 955] ssh -h " Displayed as illegal options " in SSH 3.9
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.
bugzilla-daemon at mindrot.org
2004-Dec-06 05:53 UTC
[Bug 955] ssh -h " Displayed as illegal options " in SSH 3.9
http://bugzilla.mindrot.org/show_bug.cgi?id=955 djm at mindrot.org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WONTFIX ------- Additional Comments From djm at mindrot.org 2004-12-06 16:53 ------- 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!) ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.