login about faq

Could you provide user instructions how to use the command line clients in verbose and debug mode.

asked Dec 30 '10 at 15:15

SSH%20KB's gravatar image

SSH KB ♦
509249246237


Introduction

While the server-side debug output provides more information than the client-side debug output, in most cases the client-side debug output provides quite valuable information. If you are not the administrator of the server-side host, it is useful to provide the initial client-side debug output to the administrator already when requesting the administrator to run the server in debug mode for you. The SSH Tectia Client command line clients scp2 and sftp2 use the ssh2 executable for transport (also on Windows since version 3.2.3), so ssh2 should be used to troubleshoot any problems with connection or authentication, and scp2 and sftp2 only when file transfer specific issues need troubleshooting.

Verbose Mode

The -v option (verbose mode) equals to debug level 2 and can be used for any of the command line clients when connecting to the server. For example: ssh2 -v user@host The output can be also redirected to a file: sftp2 -v user@host 2> sftp2_debug.txt

Debug Mode

Note that the debug option is different for ssh2 ('-d') than for the file transfer clients scp2 and sftp2 ('-D'), since the lower case option for scp2 was already in use for legacy reasons. Usually the suitable debug level is 4. For example: ssh2 -d4 user@host The output can be also redirected to a file: sftp2 -D4 user@host 2> sftp2_debug.txt It is possible to change the debug level for all modules or specifically for a single module. The following example is suitable when debugging user authentication: ssh2 -d "*=4,*Auth*=7" 2> ssh2_debug.txt Debug level 4 is used for all modules and level 7 for any modules that contain "Auth". The debug file is saved to the current directory as ssh2_debug.txt.
link

answered Dec 30 '10 at 15:15

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:15

Seen: 4,051 times

Last updated: Mar 10 '11 at 23:22

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