Quantcast
Channel: sshnet Discussions Rss Feed
Viewing all articles
Browse latest Browse all 1729

New Post: SSH.NET

$
0
0
I'm using sshnet for the first time and have a question. I use the following code to connect

using (var client = new SshClient("<site>", port, "<uid>", "<pw>"))
        {
            client.Connect();
            client.RunCommand("list");
            client.Disconnect();
        }

When I invoke the runcommand method, I receive a message that "client is not connected". When I check the client.IsConnected and client.IsAuthenticated attribute, both come back as true. Can someone point me in the right direction? All I'm trying to do is download and upload several files.

Thank you.

Viewing all articles
Browse latest Browse all 1729

Trending Articles



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