login about faq

Could you provide Administrator instructions for generating debug output and saving it to a file?

asked Dec 30 '10 at 15:11

SSH%20KB's gravatar image

SSH KB ♦
509249246237


Important! All ssh connections should be terminated before restarting the server is attempted. Stopping the SSH Tectia Server does not terminate any existing connections. Please use the Windows Task Manager or another appropriate tool to ensure no child processes exist.

Troubleshooting the Server in Windows

1. Stop the SSH Tectia Server by selecting Start Menu > Programs > SSH Tectia Server > Tools > Stop Server.

2. Start the server in debug mode by choosing Start Menu > Programs > SSH Tectia Server > Tools > Troubleshoot Server and Save Debug Output.

or, in order to manipulate the debug levels:

2. Choose Start Menu > Programs > SSH Tectia Server > Tools > Command Prompt, and use, for example, the following command:

ssh2master.exe -d "*=4,*Auth*=7" 2> sshd2_debug_output.txt
. This example starts the SSH Tectia Server with debug level 4 for all modules except those containing "Auth", which are debugged at level 7.

The debug log is saved in two files: sshd2_debug_output.txt and ssh-subauth-debug.txt, the latter of which is only created in case something is wrong with user authentication. The log contains debug level 4 output for all modules.

Client-side

3. Connect to the server with a secure shell client. The client should also be run in debug mode.

Troubleshooting the Server in Unix

1. Stop the SSH Tectia Server by issuing a signal to it:

# kill -kill `cat /var/run/sshd2_22.pid`
or, if the directory /var/run/ does not exist, use:
# kill -kill `cat /etc/ssh2/sshd2_22.pid`

2. Start the SSH Tectia Server in debug mode by using the following command:

# /usr/local/sbin/sshd2 -d "*=4,*Auth*=7" 2> sshd2_debug_output.txt
The server is run in debug mode with debug level 4 for all modules and level 7 for any modules that contain "Auth". The debug output will be saved to the current working directory as sshd2_debug_output.txt. Client-side

3. Connect to the server with a secure shell client. The client should also be run in debug mode.

link

answered Dec 30 '10 at 15:12

SSH%20KB's gravatar image

SSH KB ♦
509249246237

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×9

Asked: Dec 30 '10 at 15:11

Seen: 15,470 times

Last updated: Mar 10 '11 at 18:22

All user contributed content licensed under the cc-by-sa license.
Powered by OSQA.