ssh programming

Kevin Buettner kev@primenet.com
Wed, 21 Mar 2001 17:35:58 -0700


On Mar 21,  5:10pm, Joel Dudley wrote:

>    I am not an advanced C programmer so I may be out of line here. I am
> currently writing a postgres database trigger in perl that uses SSH. I would
> rather write this trigger in C but I cannot find a bit of info on google
> concerning SSH system calls, API's, etc. Anyone have experrience with this?

I haven't really looked, but I don't think there is a C/C++ API.  To
put it another way, I think SSH's interface *is* the command line and
to a lesser degree the config files.  (I also think that this is a good
thing.)

That said, you can still invoke it from C using fork/exec, etc.

Kevin