Debugging SshTunnel

The Chilkat SshTunnel object/class (may be “CkSshTunnel” in some programming languages) provides a number of properties to help in debugging (i.e. understanding) what is happening in the background thread:

  • AcceptThreadSessionLogPath:  May be set to the path of a log file that the SshTunnel will create and log activity regarding connections accepted.   This will allow you to see incoming connections that have been accepted.
  • ConnectLog: Contains log text detailing the establishment of each SSH server connection.  This log will continue to grow as new connections are accepted.  This property may be cleared by setting it to an empty string.   (This is similar to AcceptThreadSessionLogPath, but it provides information in-memory as a string.)
  • LastErrorText: The standard last-error information that contains information about the last method called.   The LastErrorText contains information regardless of success/failure.
  • TunnelErrors: Contains the accumulated errors, if any, of the background thread.   Call ClearTunnelErrors to clear this string.
  • GetTunnelsXml() — Method that returns information about the current set of running SSH tunnels.  This is a snapshot of the tunnels at a single point in time.
  • TunnelThreadSessionLogPath: May be set to the path of a log file that the SshTunnel will create and log information regarding tunnel activity.
    Tags :