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

New Post: client.RunCommand() is not working

$
0
0
 static void Main(string[] args)
        {
           PrivateKeyFile key = new PrivateKeyFile("private");
           using (var client = new SshClient("10.96.15.6", "admin", key))
            {
                client.Connect();
                client.RunCommand("xcommand dial number: 6712@XXXXXXXX.com");
                client.Disconnect();
            }
        }
The program hangs at the .RunCommand(). I am new to this, am i missing something really basic? It seems that this is the same code that works for other people and I know that the command is correct.

If I comment out the .runcommand() the program executes without error.

I appreciate any help in advanced.

Viewing all articles
Browse latest Browse all 1729

Trending Articles



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