HP-UX Secure Shell Getting Started Guide HP-UX 11i v1, HP-UX 11i v2, and HP-UX 11i v3 (5900-3142, June 2013)

NOTE: If you run sshd in debug mode, sshd allows only one client connection at
a time. Additional clients cannot connect to the HP-UX Secure Shell server until the
connected client logs out.
-e Directs sshd to send the output to the standard console instead of the system log.
-p port Specifies the port on which the server listens for connections. The default port is 22.
HP-UX Secure Shell allows multiple port options. If you specify a command-line port,
HP-UX Secure Shell ignores the ports specified in the configuration file.
Running sshd in Debug Mode
If you run sshd in debug mode, log messages display on the standard output and are also logged
in the /var/adm/syslog/syslog.log file.
Following is the syntax to generate debug messages on the HP-UX Secure Shell server:
$ /usr/sbin/sshd -[d dd ddd] -e [-p port] [2> <outputfile>]
Where:
<outputfile> Specifies the file to which the error messages are redirected.
You can use this file to analyze the problem or you can to send the file to HP
support if you are unable to resolve the problem.
You can use multiple -d options to increase the amount and detail of debugging information. The
-d command-line option pertains only to debug messages and does not control the generation of
error messages. Error messages are generated regardless of the command-line option setting.
NOTE: You can use a maximum of three -d options to generate debug messages.
Table 19 lists the information that is displayed for the -d, -dd, and -ddd debug options.
Table 19 Debug Information for -d, -dd, and -ddd Options
Details DisplayedDebug Option
-d
The client protocol and the sshd version number
The private host key type
-dd
The -d debug messages
The private key bit set
The user authentication method request
-ddd
All the -d and -dd messages
The privileged user and group
The following sample debug messages show the level of detail displayed for the same HP-UX
Secure Shell connection, using the -d, -dd, and -ddd debug command-line options:
Following is an example of some -d command-line option:
debug1: sshd version OpenSSH_4.4p1-hpn [ HP-UX Secure Shell-A.04.40.005]
debug1: read PEM private key done: type RSA
debug1: private host key: #0 type 1 RSA
debug1: read PEM private key done: type DSA
debug1: private host key: #1 type 2 DSA
debug1: Bind to port 1111 on 0.0.0.0.
Server listening on 0.0.0.0 port 1111.
Following is the output for the -dd command-line option:
debug2: load_server_config: filename /opt/ssh/etc/sshd_config
debug2: load_server_config: done config len = 270
debug2: parse_server_config: config /opt/ssh/etc/sshd_config len 270
56 Troubleshooting HP-UX Secure Shell