Your browser does not allow storing cookies. We recommend enabling them.

SSH

Debugging Secure File Transfer

The secure file transfer process (sft-server-g3) is debugged together with the Tectia Server, and the same debug level that is set for Tectia Server (ssh-server-g3) is used for both processes.

By default, the sft-server-g3 debug messages are sent to the standard error, that goes also to the SFTP client. If you want to forward the sft-server-g3 debug messages into a file and not to the client, you can add the following two environment variables affecting the secure file transfer user into directory /etc/.ssh2/environment on Unix and into the user-specific environment variables on Windows:

  1. SSH_SFTP_DEBUG defines the debug level that controls the messages that the sft-server-g3 process will be showing while executing. This variable can be used when no debug level has been set for the sft-server-g3 process. The value can be for example:

    SSH_SFTP_DEBUG=SftpLibServer=80,SftpLibStageFsFile=80

    If debug level is set for ssh-server-g3 this variable will be ignored.

  2. SSH_SFTP_DEBUG_FILE defines the file where the debug messages from the sft-server-g3 will be printed. This variable can be used when no debug level has been set for the sft-server-g3 process. The value can be for example:

    SSH_SFTP_DEBUG_FILE=/tmp/sft_debug.txt

    If this variable is not defined, the messages will be sent to standard error as normally, and the SFTP client will receive them.

    If debug level is set for ssh-server-g3 this variable will be ignored.


 

 
PrivX
 

 

 
What to read next:

  • Reduce Secure Shell risk. Get to know the NIST 7966.



    The NISTIR 7966 guideline from the Computer Security Division of NIST is a direct call to action for organizations regardless of industry and is a mandate for the US Federal government.
    Download now
  • ISACA Practitioner Guide for SSH



    With contributions from practitioners, specialists and SSH.COM experts, the ISACA “SSH: Practitioner Considerations” guide is vital best practice from the compliance and audit community.
    Download now