• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1368
  • Last Modified:

SSH Library

How can we implement SSH client using VC++
0
carchitect
Asked:
carchitect
  • 9
  • 5
  • 4
  • +2
1 Solution
 
evilrixSenior Software Engineer (Avast)Commented:
LibCurl....

http://curl.haxx.se/
0
 
evilrixSenior Software Engineer (Avast)Commented:
Sorry, LibCurl will allow you to implement HTTPS... OpenSSL should allow you to implement SSH

http://www.openssl.org/
0
 
evilrixSenior Software Engineer (Avast)Commented:
You might also want to look here...
http://www.openssh.com/
0
Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

 
Deepu AbrahamR & D Engineering ManagerCommented:
Have a look into this:
http://www.openssh.com/windows.html
Best Regards,
DeepuAbrahamK
0
 
evilrixSenior Software Engineer (Avast)Commented:
Also, the source code for PuTTY is freely available...

http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
0
 
administradoresCommented:
I'd use openssh as commented above.
0
 
administradoresCommented:
And alo i'd donwload putty source code to learn.

My opinion.
0
 
Deepu AbrahamR & D Engineering ManagerCommented:
oops almost at the same time :P
0
 
carchitectAuthor Commented:
Thank you for your responses but i want to have SSH client library so that my application can interact with SSH servers.
0
 
evilrixSenior Software Engineer (Avast)Commented:
0
 
carchitectAuthor Commented:
Too costly
0
 
evilrixSenior Software Engineer (Avast)Commented:
You didn't mention anything about cost :-p
0
 
evilrixSenior Software Engineer (Avast)Commented:
0
 
carchitectAuthor Commented:
I am already checking it but not getting any windows supported library in its download section.
0
 
evilrixSenior Software Engineer (Avast)Commented:
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.
0
 
carchitectAuthor Commented:
ok. I will just try it
0
 
administradoresCommented:
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.
0
 
rstaveleyCommented:
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.
0
 
administradoresCommented:
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.
0
 
evilrixSenior Software Engineer (Avast)Commented:
>> 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!
0
 
rstaveleyCommented:
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.]
0
 
administradoresCommented:
[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.]
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 9
  • 5
  • 4
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now