I am using :
client = new SshClient(res.host, int.Parse(res.port), res.user, res.password);
_client.connect();
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.__
client = new SshClient(res.host, int.Parse(res.port), res.user, res.password);
_client.connect();
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.__