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 BitFlipper,

Base on my experiment. I hope this helps. Anyone is invited to add new ideas.
This works for me. RSA-Key generated then throw secondary command.. something like LS.
            using (var client = new SshClient("192.168.1.10", "root", "magic!0n3"))
            {
                client.Connect();
                var cmd1 = client.RunCommand("ssh root@192.168.1.11;ls;");
                //MessageBox.Show(cmd1.Result);
                client.Disconnect();
            }

Viewing all articles
Browse latest Browse all 1729

Latest Images

Trending Articles



Latest Images

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