SSH using ASP - WeOnlyDo Discussion board

SSH using ASP (wodSSH / wodSSH.NET)

by Sandeep, Thursday, September 14, 2006, 00:42 (6444 days ago)

I am able to execute commands on a unix machine which allows telnet.Below is the code I use.

set cmchk = Server.CreateObject( WeOnlyDo.wodSSHCom.1 )
cmchk.blocking = true
cmchk.login = login
cmchk.password = password
cmchk.hostname = 222
cmchk.LicenseKey = d-f-g-r
cmchk.port = 23
cmchk.connect
On Error Resume Next

Debug.Print(cmchk.waitfor( # ))
scm = (cmchk.Execute( comm & vblf, # ))
cmchk.Disconnect
response.write(scm)

The problem is that I am not able to do SSH to another unix machine. Below is the code I use.

set cmchk = Server.CreateObject( WeOnlyDo.wodSSHCom.1 )
cmchk.blocking = true
cmchk.login = login
cmchk.password = password
cmchk.hostname = 22.33.33.33
cmchk.LicenseKey = d-g-w-e
cmchk.port = 22
cmchk.protocol =SSHAuto
cmchk.connect

On Error Resume Next

Debug.Print(cmchk.waitfor( # ))
scm = (cmchk.Execute( ls & vblf))

cmchk.Disconnect
Response.Write( hello &scm)

Any help would be appreciated.


Thanks,
Sandeep


Complete thread: