This project is read-only.

Maintain connection through different forms

Apr 15, 2014 at 1:52 PM
I am using :

client = new SshClient(, int.Parse(res.port), res.user, res.password);

in FORM1

after successful authentication I want to execute commands in FORM2:

Just like : _client.RunCommand("touch newfile1");

but the error is sshclient is not present in this form.

my question how to maintain a single authentication through out different forms.