ssh api

Damien Miller djm at mindrot.org
Thu Dec 13 08:21:53 EST 2001


On Wed, 12 Dec 2001, Wilfrid Billot wrote:

> I'm currently upgrading a tool which is a parallelized rsh for a cluster
> and want to include ssh connection in it. But the ssh code is huge and,
> as I don't want to loose too much time reading ssh code, I'd like to
> know if there is in ssh a C-function like rcmd, that opens a ssh
> connection and give in return a socket descriptor.

pipe()
fork()
dup2()
execl()

See sftp.c for an example.

-d

-- 
| By convention there is color,       \\ Damien Miller <djm at mindrot.org>
| By convention sweetness, By convention bitterness, \\ www.mindrot.org
| But in reality there are atoms and space - Democritus (c. 400 BCE)




More information about the openssh-unix-dev mailing list