SSH using ASP (wodSSH / wodSSH.NET)
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:
- SSH using ASP - Sandeep, 2006-09-14, 00:42
- Re: SSH using ASP - wodSupport, 2006-09-14, 01:08
- Re: SSH using ASP - Sandeep, 2006-09-14, 15:52
- Re: SSH using ASP - wodSupport, 2006-09-14, 15:54
- Re: SSH using ASP - Sandeep, 2006-09-14, 16:00
- Re: SSH using ASP - wodSupport, 2006-09-14, 16:07
- Re: SSH using ASP - sandeep, 2006-09-14, 16:27
- Re: SSH using ASP - wodSupport, 2006-09-14, 16:28
- Re: SSH using ASP - Sandeep, 2006-09-14, 16:41
- Re: SSH using ASP - wodSupport, 2006-09-14, 16:46
- Re: SSH using ASP - Sandeep, 2006-09-14, 17:01
- Re: SSH using ASP - wodSupport, 2006-09-14, 17:09
- Re: SSH using ASP - Sandeep, 2006-09-14, 17:21
- Re: SSH using ASP - wodSupport, 2006-09-14, 17:23
- Re: SSH using ASP - Sandeep, 2006-09-14, 17:35
- Re: SSH using ASP - wodSupport, 2006-09-14, 17:23
- Re: SSH using ASP - Sandeep, 2006-09-14, 17:21
- Re: SSH using ASP - wodSupport, 2006-09-14, 17:09
- Re: SSH using ASP - Sandeep, 2006-09-14, 17:01
- Re: SSH using ASP - wodSupport, 2006-09-14, 16:46
- Re: SSH using ASP - Sandeep, 2006-09-14, 16:41
- Re: SSH using ASP - wodSupport, 2006-09-14, 16:28
- Re: SSH using ASP - sandeep, 2006-09-14, 16:27
- Re: SSH using ASP - wodSupport, 2006-09-14, 16:07
- Re: SSH using ASP - Sandeep, 2006-09-14, 16:00
- Re: SSH using ASP - wodSupport, 2006-09-14, 15:54
- Re: SSH using ASP - Sandeep, 2006-09-14, 15:52
- Re: SSH using ASP - wodSupport, 2006-09-14, 01:08