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

New Post: SSH command using the RunCommand() doesn't work?

$
0
0
Hi Guys,
I was just wondering why ssh command doesn't work on RunCommand. It hangs up.
Can anyone direct me? if it's not possible, is there any other way to do it? Thanks.
            using (var client = new SshClient("192.168.1.10", "root", "magic!0n3"))
            {
                client.Connect();
                var cmd1 = client.RunCommand("ssh root@192.168.1.11");
                //MessageBox.Show(cmd1.Result);
                client.Disconnect();
            }

Viewing all articles
Browse latest Browse all 1729

Trending Articles



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