Technical Notes |
|
This technical note describes how to run F-Secure SSH Server for Windows and F-Secure SSH Client for Windows in debug mode to gather details for troubleshooting problems.
Note: For information about using debug mode in Reflection for Secure IT Windows Server, see Technical Note 2291.
The following tips will help you create a debug log with information you can use to troubleshoot issues.
Attachmate technical support may require a debug log in order to troubleshoot your problem.
Use the method appropriate for the application you are running:
You can run debug from the command line or from the user interface.
To start debug from the command line, enter the following:
ssh2 d4 username@hostnameor
ssh2 d4 username@hostname 2>"C:\<path to existing location>\logfile.txtNote: The 2> parameter will overwrite the contents of an existing logfile.txt.
The debug output is written to the file after you issue an exit command at the host prompt or when the session disconnects.
To use the Debugging dialog box, load the profile you want to use to connect to the server.
Once you have finished gathering debug information, open the Debugging dialog box and clear the check boxes in the Debug section to stop running in debug mode. Save these settings.
The user interface offers access to basic troubleshooting information. You can view this information by clicking Help > Troubleshooting.
To send this information to Attachmate Technical Support, click the Copy to Clipboard button. Then, open a text editor, such as Notepad, and paste the contents. Save the file and send it to technical support as directed.
You can run debug from the command line. To start debug for scp2, enter the following command on the command line:
scp2 -D4 test1.txt username@hostname:test1.txtThis command will put the file located in the current directory on the local client workstation to the user's home directory on the server and log debug information to the command window.
scp2 -D4 test1.txt username@hostname:test1.txt 2>scp2debug.txtThis command will put the file located in the current directory on the local client workstation to the user's home directory on the server and log output to the file, scp2debug.txt. The file that was transferred will display in the terminal window.
Note: The debug switch for scp2 requires that you use an upper-case D.
You can run debug from the command line or from the user interface.
To start debug from the command line, enter the following:
sftp2 -D4 username@hostname 2>"C:\<path to existing location>\SFTPDebugLog.txt"Note: the debug switch requires that you use an upper-case D.
The log file is written after you issue the quit command at the sftp> prompt.
Follow the steps in the F-Secure SSH Client for Windows 5.x section above.
The Application Event Viewer utility logs events on the F-Secure SSH Windows Server. Follow the steps below to use and configure the Application Event Viewer.
If the event viewer does not provide the information you need to troubleshoot a problem, try Running Debug from the Command Line, described below.
To use the event viewer, follow these steps:
You can configure which events are logged in the F-Secure SSH Server Configuration dialog box.
To run debug from the command line, follow these steps:
fsshd2 -stopfsshd2 -d4Output will be logged to the terminal window. To write the debug information to a file, issue the following command:
fsshd2 d4 >debug-log.txt 2>&1Output debug-log.txt is saved to the "<Drive>:\Program Files\F-Secure\ssh server" folder if no specific path is given.
fsshd2 -startYou can view SFTP server events in the Application Event Viewer. Follow these steps to configure which sftp events are logged in the F-Secure SSH Server Configuration dialog box.