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

debug1: channel 0: new [client-session]
>>>> Indicates that a new client session is open.
debug1: Entering interactive session.
>>>> Indicates that the client has entered into an
interactive session.
Generating Debug Messages Using the LogLevel Configuration Directive
You can use the LogLevel configuration directive in the HP-UX Secure Shell server and client
configuration files /opt/ssh/etc/sshd_config and /opt/ssh/etc/ssh_config to control
the level of debug information generated during an HP-UX Secure Shell connection.
The LogLevel Configuration Directive
You can set LogLevel to one of the following values:
QUIET Indicates that messages are not logged.
FATAL Indicates that fatal messages are logged.
ERROR Indicates that HP-UX Secure Shell logs all error messages.
INFO Indicates the information that must go to the log.
VERBOSE Indicates that HP-UX Secure Shell logs more detailed messages.
DEBUG Specifies debugging messages that must not be logged during normal operation.
debug1 Specifies the debugging mode level one. This mode is the same as DEBUG. It is also
the same as specifying -d or -v on the command line.
debug2 Specifies debugging level two. It is also the same as specifying -dd or -vv on the
command line.
debug3 Specifies debugging level three. It is also the same as specifying -ddd or -vvv on
the command-line.
Of the different types of messages listed, only FATAL and ERROR values pertain to error messages.
The other values generate messages you can use for informational or debug-trace purposes.
The -d and -v command-line options do not log FATAL or ERROR messages. The LogLevel
directive is more flexible and friendly compared to the command-line options.
The default value for LogLevel is INFO.
Table 21 lists the LogLevel values and the equivalent -d and -v command-line options.
Table 21 LogLevel and Debugging Values
Equivalent Debugging OptionLogLevel Value
-d and -vdebug1
-dd and -vvdebug2
-ddd and -vvvdebug2
IMPORTANT: Be cautious when using debug levels higher than debug1. HP-UX Secure Shell
displays sensitive information at higher levels, such as the private keys of the user or server.
Logging Error and Debug Messages
HP-UX Secure Shell logs error messages in different locations depending on how debugging is
configured.
Following are the different locations in which HP-UX Secure Shell logs error and debug messages:
The /var/adm/syslog/syslog.log File If you specify only the LogLevel directive in
the /opt/ssh/etc/sshd_config file and you do not specify the -d or -v command-line
options with sshd, HP-UX Secure Shell logs all the messages (debug and error messages) in
60 Troubleshooting HP-UX Secure Shell