Quantcast
Channel: SSH.NET Library
Viewing all articles
Browse latest Browse all 2955

New Post: Maintain connection through different forms

$
0
0
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.

Viewing all articles
Browse latest Browse all 2955

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>