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

New Post: ssh conversation

$
0
0
Griffin90,

My email notification of your latest looked like this:
Dim ConnSring As New Renci.SshNet.PasswordConnectionInfo("myserver.com", "xx65", "password")
Dim sshConn As New Renci.SshNet.SshClient(ConnString)
Dim comm As Renci.SshNet.SshCommand
        
Using sshClient
    sshConn.Connect()
            
    'Execute command and print the results. 
    'comm = sshClient.RunCommand("echo "whatever" | tail -50 /var/log/messages | uname -a")

    'RichResult.Text = comm.Result
    sshConn.Disconnect()
End Using
...which has a single quote "'" at the beginning of a few key lines. I hope you know that a line starting with a single quote is considered by the compiler as a comment... :)

Viewing all articles
Browse latest Browse all 1729

Trending Articles



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