Link to home
Start Free TrialLog in
Avatar of carchitect
carchitect

asked on

SSH Library

How can we implement SSH client using VC++
Avatar of evilrix
evilrix
Flag of United Kingdom of Great Britain and Northern Ireland image

LibCurl....

http://curl.haxx.se/
Sorry, LibCurl will allow you to implement HTTPS... OpenSSL should allow you to implement SSH

http://www.openssl.org/
You might also want to look here...
http://www.openssh.com/
Have a look into this:
http://www.openssh.com/windows.html
Best Regards,
DeepuAbrahamK
ASKER CERTIFIED SOLUTION
Avatar of evilrix
evilrix
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of administradores
administradores

I'd use openssh as commented above.
And alo i'd donwload putty source code to learn.

My opinion.
oops almost at the same time :P
Avatar of carchitect

ASKER

Thank you for your responses but i want to have SSH client library so that my application can interact with SSH servers.
Too costly
You didn't mention anything about cost :-p
I am already checking it but not getting any windows supported library in its download section.
You'll need to build the source yourself as part of your project: -

Portability: The NetSieben SSH Library is based on the Botan crypto library, making it highly portable. It has been tested on Linux x86, Linux PPC, Linux SPARC, Linux AMD64. Commercial versions are avaliable for Windows 2000 and XP platforms: MSVS 2003 or later, and wxDev-C++ environments.
ok. I will just try it
As other experts recommended, take a look at openssh source, and also putty (i think it's easier to understand) because they have a good and secure implementation, and the code is somehow commented.
If you want easy and free, look at OpenSSL with Alhem's socket library.

http://www.openssl.org/
http://www.alhem.net/Sockets/

The Alhem example code will get you kicked off in no time.

OpenSSL does build from source easily enough on Windows, if you can cope with extacting code from the tarball, but Google tells me that http://www.slproweb.com/products/Win32OpenSSL.html is easier.

I use the OpenSSL tarball for my TLS stuff, which generally deploys on Windows and Linux. I used to use Alhem, but started using my own library because Alhem's licensing didn't work for some proprietary projects I had to work on. Alhem has subsequently made the licensing much better see, and I wouldn't bother writing my own, if I was starting now.
Well as i know, ssl and ssh is not the same protocol, but i'm not mutch into this, you rstaveley as a wizard sure are right .

Hope you find a free solution.
>> ssl and ssh is not the same protocol
SLL is Secure Socket Layer. SSH is Secure Shell -- it is a shell over a Secure Socket Layer!
OpenSSH is a bunch of executables that use the OpenSSL library. I'm sure he'd have got to OpenSSL via OpenSSH anyhow. I only wanted to vouch for the Alhem library really, which does make life easier, when working with OpenSSL. OpenSSL can be a bit daunting otherwise.

Working from the PuTTY source would be hard work. I've a vague idea that Simon Tatham implements a lot of what the OpenSSL library does in his own idiosyncratic way. I don't think PuTTY is the result of collaboration.

[Please don't be put off commenting, administradores. My comments are no more valuable than yours and we're all finding our way in this complicated world.]
[You are right as i told you before, and don't take this personal, since i just used the putty source that interested me in one app, don't care about flames and the only thing i wanted is to help carchitect and my fault was only not to see that the user is intermediate on this subject and is like me or more experienced.]