login about faq

Hi, i have a multi treading C# software that call SSH Tunnel within one of the instances, how can i verify that other parties could not read the ssh credentials that i have provided to the chilkat component ? maybe call a function that prevents credential read.

also, i need to close and release the component instance a few times a day, calling Dispose() is enough or sshTunnel = null is required ?

asked Oct 16 '12 at 18:13

Rotem's gravatar image


The Dispose call will close/tear down any tunnels that might be open. The only thing you're left with is the object instance itself taking up a little memory. Given that it's just one line of code, I would set sshTunnel = null after calling Dispose. No reason not to..

I don't fully understand what you mean by "other parties reading the SSH credentials". SSH authentication happens after the secure channel (tunnel) becomes established, so the login/password is not transmitted over an insecure connection.


answered Oct 16 '12 at 21:37

chilkat's gravatar image

chilkat ♦♦

i have received the following errors while trying to start the connection again with the component,

    DllDate: Aug  5 2012
    UnlockPrefix: LIMPOXSSH
    Username: ENDPOINT_5-PC:EndPoint_1
    Architecture: Little Endian; 32-bit
    Language: .NET 4.0
    VerboseLogging: 0
    listenPort: 48492
    destPort: 80
    Listen thread did not start.
after i have receive this error i do those action and try again:
sshTunnel = null;
sshTunnel = new SshTunnel();

is there a better way to handle those errors ?


answered Oct 24 '12 at 10:02

Rotem's gravatar image


Set the sshTunnel.AcceptThreadSessionLogPath equal to the path of a log file that should be created. The "accept" background thread will log information to this file. It may provide more information to help understand the cause of the problem.

(Also, please put code listings or LastErrorText's in <pre> </pre> tags when posting. Another hint when posting: two SPACE chars at the end of the line will force a new line.)

(Oct 24 '12 at 11:07) chilkat ♦♦

after some testing, i have better remarks,


sshTunnel = null;
sshTunnel = new SshTunnel();

i have lost the instance, and the background thread is still listening, using Dispose() did not closed the current listening background thread.

so now i am using


on normal usage and only dispose and null after those 2 commands. this is look like a bug in the Dispose() function.


answered Oct 24 '12 at 11:24

Rotem's gravatar image


Your answer
toggle preview

Follow this question

By Email:

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



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



Asked: Oct 16 '12 at 18:13

Seen: 1,180 times

Last updated: Oct 24 '12 at 11:24

powered by OSQA