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 **
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