Back to product page

Getting Started in ASP


Working with the COM object

In order to insert the wodSSH COM object into your project, follow these steps:
  1. Install the component on your system by starting its setup program.
  2. Go to Inetpub/wwwroot folder and create a new ASP page or open an existing one.
  3. Add code similar to this in order to initialize wodSSHCom

           <%
           dim SSH
           set SSH = Server.CreateObject("WeOnlyDo.wodSSHCom.1")


  4. Set Blocking mode which is needed in scripting environments

           SSH.Blocking = 1

  5. If you have the licensed version of the product, set the LicenseKey property

           SSH.LicenseKey = "xxxx...xxxx"

  6. Set other properties, then connect

           SSH.Hostname = "put.your.hostname"
           SSH.Login = "put.your.login"
           SSH.Password = "put.your.password"
           SSH.Connect


           ...

           SSH.Send "ls -al" & VbLf
           Response.Write(SSH.Receive)
           SSH.Disconnect
           %>


  7. If an error occurs, you should convert the hexadecimal representation of the error to decimal so that you can locate the error in our list. For example:

          Error Type:
          WeOnlyDo.wodSSHCom.1 (0x800A9C3F)
          License key missing. You can not use this component in design environment.
          /SSH.asp, line 9



    IIS reported error 0x800A9C3F. You should use only 9C3F, when converted to decimal it is 39999 - License Key missing error.

  8. Important: If you use the trial version of our product, you will always receive the above error. wodSSH needs to access the registry in order to validate the trial license. This is because IIS is running under IUSR_COMPUTER account and does not have access to the registry, you must change IIS privileges and force it to run as Administrator.

    Do not do this on production server! This is a potential security problem! This applies only to the trial (demo) version, the licensed version does not have this restriction.

    To change IIS privileges, go to Start->Settings->Control Panel->Administrative Tools->Internet Services Manager. Here you will find 'Default Web Site', right-click on it, select 'Properties'. Go to the 'Directory Security' tab, at the top is the 'Anonymous access and authentication control' frame, and an 'Edit' button. Click on 'Edit' button. The 'Authentication Methods' dialog box appears, click the 'Edit' button to see the 'Account used for anonymous access' dialog.

    Here you should enter Username: 'Administrator', and for Password: put the administrator account password. Click on 'Ok' to close all windows, and wodSSH should now run

    Once again: do not do this on a production server, only in test and firewalled environments.


Working with the ActiveX control

You should not use ActiveX control in ASP because you will not be able to set LicenseKey. Only the COM object should be used with ASP.

Platforms

Windows