Quantcast
Channel: sshnet Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 1026

Commented Issue: Rosh [1546]

$
0
0
When i use the Rosh command any other commands taht i pass are not working.!

any help greatly appreciated.

Dim connInfo As New Renci.SshNet.PasswordConnectionInfo(servTxt.Text, Val(prtTxt.Text), usrTXT.Text, pwTxt.Text)
Dim sshClient As New Renci.SshNet.SshClient(connInfo)
Dim cmd As Renci.SshNet.SshCommand
Dim acmd As Renci.SshNet.SshCommand
Using sshClient
sshClient.Connect()
cmd = sshClient.RunCommand("rosh -l username -n myserver.mysite.com ")
'cmd = sshClient.RunCommand("cd /opt/isv/")
acmd = sshClient.RunCommand("pwd")
resTxt.Text = acmd.Result
sshClient.Disconnect()
End Using
Comments: ** Comment from web user: olegkap **

You will need to provide more information.
What response to you get, what do you expect?

Also, FYI, one command execution cannot remember previous command execution result.
This is due to SSH server I believe.

Thanks,
Oleg


Viewing all articles
Browse latest Browse all 1026

Trending Articles



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