| Summary: | ssh-add doesn't have --help or --version options | ||
|---|---|---|---|
| Product: | Portable OpenSSH | Reporter: | Baron Schwartz <baron> |
| Component: | Documentation | Assignee: | Assigned to nobody <unassigned-bugs> |
| Status: | CLOSED WONTFIX | ||
| Severity: | normal | CC: | djm |
| Priority: | P2 | ||
| Version: | 5.2p1 | ||
| Hardware: | Other | ||
| OS: | Linux | ||
|
Description
Baron Schwartz
2009-03-21 00:27:33 AEDT
No OpenSSH program supports --help, --version or any other --long-option. You must be confusing us with GNU software that tends to do stuff like this - we aren't. That doesn't match the behavior I see on my machine.
baron@kanga:~$ ssh --help
usage: ssh [-1246AaCfgKkMNnqsTtVvXxY] [-b bind_address] [-c cipher_spec]
[-D [bind_address:]port] [-e escape_char] [-F configfile]
[-i identity_file] [-L [bind_address:]port:host:hostport]
[-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port]
[-R [bind_address:]port:host:hostport] [-S ctl_path]
[-w local_tun[:remote_tun]] [user@]hostname [command]
baron@kanga:~$ scp --help
usage: scp [-1246BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file]
[-l limit] [-o ssh_option] [-P port] [-S program]
[[user@]host1:]file1 ... [[user@]host2:]file2
baron@kanga:~$ ssh-copy-id --help
Usage: /usr/bin/ssh-copy-id [-i [identity_file]] [user@]machine
On the other hand, ssh-agent ignores --help too.
I assume the above are all just 'syntax error' responses. But they have the appearance of being --help responses.
That behaviour is "by accident", since both those programs print usage information when they receive an unknown argument. "--help" is interpreted first as "--" and '-' is not a valid option character. ssh-add actually does this too, but it checks whether ssh-agent is reachable first, so you may not see it. Mass move of RESOLVED bugs to CLOSED now that 5.3 is out. |