SSH Socket Programming ?

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View


I got to grips with socket programming and would like to try my hand at
making ssh connections using C.

I've got "SSH The Secure Shell The Definitive Guide" by D.J. Barrett &
R. E. Silverman. And from it I can see the concepts that are being used
for SSH to function.

I've also got the freely available code of OpenSSH 3.8.1 and I'm trying
to make sense of it.

But still I'd like to read more about it, somewhere where the steps are
broken down in "digestible" chunks. With code samples.

Do you know of a such a document, either web page or a book ? With code
examples along side the theory, or just the code de-mystified ?

Thank you for your time !

Re: SSH Socket Programming ?

Maybe you are doing the wheel again. There are two libs that already do
that: libssh ( and libssh2 (
What would be a nice idea is doing tunnel programs using one the above
library, like a SOCKS5 to ssh tunnel.

Good luck anyway :)
hanjar wrote:

Quoted text here. Click to load it

Site Timeline