View Full Version : SSH on VB6
This is not robotics related, but there are a lot of helpful programmers here so I thought i can ask.
I am trying to make a GUI interface for a system that is controlled via command line over SSH.
if it was telnet, it would have been no problem with winsock, but I cant find an SSH activeX or some code to do the encryption.
I rather not code the SSH encryption myself so it would be great. if anyone can help me to find some ActiveX component, or some code to do that.
Thanks in advanced!!
No VB advice here, but PuTTY (http://www.chiark.greenend.org.uk/%7Esgtatham/putty/) has a command line interface that you could use to execute commands over SSH. If you place the code to be executed in a shell script on the remote server, you could execute it in one line.
There might even be a dll interface based on putty, try googling...
whitetiger0990
11-08-2008, 14:16
SSH can forward ports. So I'd recommend using PuTTY and tunneling. Connect to it (which is on localhost) and it'll be forwarded to the server.
http://www.cs.uu.nl/technical/services/ssh/putty/puttyfw.html
Then you can run your own application on the server and a client and use PuTTY to assist with the connection. For instance, I'm forwarding port 139 from a local loopback device to my samba server and then I connect to it with windows. =) Much better than exposing 139 to the world.
If this sounds like something you might want to try, and you're confused. Just PM me.
dpeterson3
24-08-2008, 13:23
I doubt you will find anything. SSH is a linux server and VB is designed for windows. You might be able to connect to Samba from VB. You might want to check out a project called CYGWIN on
http://sourceforge.net
Just put it in the search bar and you will get around 100 hits. The origional goal of the projec twas to create a SSH command line enviroment for Windows. You might look at their source code to see how they did it. I think it is in C, though.
comphappy
24-08-2008, 17:35
sorry but you are wrong. SSH is a protocol not a server. Also your comment about cygwin is off as well, it "is a collection of tools originally developed by Cygnus Solutions to provide in Microsoft Windows a command line and programming interface familiar to Unix users" ssh would be just one of the many commands and is not a really core feature. Putty and others do that much simpler and smaller.
Now to anwser the OP question, there are many options out there here is one that is not free but there is a trial version of:
http://www.ssh-activex.com/
and
http://3sp.com/en/maverick-net/
and
http://www.eldos.com/sbb/activex-ssh.php
and
http://www.jscape.com/sshfactorydotnet/
and a free .NET port for c# that you could modify to VB without too much trouble.... But then one my ask why are you using a language like VB to start with....
http://www.tamirgal.com/home/dev.aspx?Item=sharpSsh
dpeterson3
24-08-2008, 19:27
Sorry for the mistake. I read somewhere that cygwin was designed to communicate via SSH. I guess I wasn't clear on the server part. I know it is a protocal. I was trying to say that SSH is usually a server protocal. I was refering to servers using the SSH protocal. Thanks for correcting me.
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.