Hello NG,

I have searched the net for some answers, but nothing that was written for a
pure VBS.

What we have:

Several servers from customers connected via firewall to our
support-environment.
We only may go there using RDP or SSH for filetransfer.

We have some scripts, written in VBS, that collect data from a server and
send them direct to a MS SQL Server.

These only work if port 1433 is open though the firewall.

Now we have some customers, that permit 1433 throug the Firewall and many
hwho would like to remove this rule.

What I now need to do is do define a Class in our VBS, which opens a SSH
tunnel and lateron closes it.

It needs to be pure VBS, there may not be any third-party DLL or anything,
the customer cannot read in clear text -we wouldn't get approval for this.

We are using openssh server version 3v8 on both sides (ssh.exe).

Can somebody help me with this class. I have found many exambles using
visual basic but non of them were usable in vb script.

thanks in advance

Carsten

PS: i think of something like this:

class sshtunnel

public function openit()
....blablabla...
end function

public function closeit()
...blubblubblub...
end function

end class

set tunnel=new sshtunnel
tunnel.open()
...many lines doing something with the tunnel...
tunnel.close()