Your browser does not support HTML5 local storage or you have disabled it. Some functionality on this site, including saving your privacy settings and offering you special discounts, uses local storage and may not work with local storage disabled. We recommend allowing the use of local storage in your browser. In some browsers, it is the same setting used for disabling cookies.
In order to start the server in debug mode, log on to USS as the SSHD2 user. Execute the command:
> /usr/lpp/ssh2/sbin/sshd2 -d 2
> /usr/lpp/ssh2/sbin/sshd2 -D 2
The debug level can be set with the -d or -D option. If -d is used, the server accepts only one connection. After that the connection to the server exits. With the -D option, the server keeps on listening the TCP port and spawns new task for each new connection. The server does not exit after the connections.
The debug level is either a number, or a comma-separated list of assignments of the format ModulePattern=debug_level, for example "*=10,sshd2=2".
If another server is already listening to the default port, use option -p to change the TCP port the server is listening to. For example:
> /usr/lpp/ssh2/sbin/sshd2 -D 2 -p 2222
This starts a server process that listens to port number 2222.
Debugging for the SFTP server subsystem can be controlled with the SSH_SFTP_DEBUG and SSH_SFTP_DEBUG_FILE environment variables. See Section File Transfer Environment Variables for more information.