1

Closed

Rosh

description

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
Closed Apr 6, 2013 at 6:47 PM by olegkap
No reply from the user and seems like this i snot an issue

comments

olegkap wrote Apr 2, 2013 at 1:52 AM

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