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

New Post: Getting blank output using template example

$
0
0
I got it to run by using the code below. Am I doing this the best way, or is something else recommended?
var connectionInfo = new PasswordConnectionInfo(RemoteHost, RemoteUserName, RemotePassWord); 
var ssh = new SshClient(connectionInfo);
ssh.Connect();
var shellStream = ssh.CreateShellStream("xterm", 80,24, 800, 600, 1024);
shellStream.WriteLine("service tpw status");
var output = shellStream.Expect("running");
if (output.Contains("running")){
Response.Write("TPW on " + RemoteHost + " is running");
}

Viewing all articles
Browse latest Browse all 1729

Trending Articles



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