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