![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Sep 2005
Posts: 10
Rep Power: 0
![]() |
VB ssh client with port fowarding
It has been years since i wrote any code but I am workign on a service where I need to have a application that will create a ssh session and alow be able to use port fowarding to create a secure tunnel to use the local ip of a server across the net. I know putty does this but I dont want the users seeing or changing setting so I figured If I could find a object or some sample code I may be able to do this. the client will be connecting to a linux ssh server that has squid proxy running on localhost. The ssh client will do port fowarding and all traffic for internet will then be routed through the proxy at the remote site. I have also added to this app a menu to auto configure ie and firefox as well as AIM. I jsut dont have the ability to code it to do the ssh part if any one has a link or some products preferably free that i can google it be much appreciated.
|
|
|
|
|
|
#2 |
|
Expert Programmer
|
To establish any kind of network tunnel/bridge be it VPN or SSH you need a program running to actually relay the packets. VB is way to slow to do this (something like asm is more appropriate) and unless you're planning on controlling a separate engine written in another language or scripting the built in windows dial out your probably best writing this in another language!
If all you want to change is the gui, you could probably just modify putty. |
|
|
|
|
|
#3 |
|
Newbie
Join Date: Sep 2005
Posts: 10
Rep Power: 0
![]() |
This is what I did. Putty has a command line application called plink. I dled that and used the shell /c to excute it with a vbhide. This worked great though I am now looking for a way to kill the plink.exe when the applciation ends, all the code snippets I have found are for 95 and 98 and wont work on xp. I am also looking for a way to send a command to the plink to have it ping the remote host every 3 minutes to keep connection alive.
|
|
|
|
|
|
#4 | |
|
Expert Programmer
|
Quote:
|
|
|
|
|
|
|
#5 |
|
Newbie
Join Date: Sep 2005
Posts: 10
Rep Power: 0
![]() |
Very nice I will have to play with that. I have the pid saved casue I use the pid to close the connection, so doing this should not be to hard.
|
|
|
|
|
|
#6 | |
|
Expert Programmer
|
Quote:
|
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|