This project is read-only.

SSH.NET

Oct 11, 2014 at 6:43 PM
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.
Coordinator
Oct 12, 2014 at 6:46 PM
Duplicate of discussion 569568.
Marked as answer by drieseng on 10/12/2014 at 10:46 AM