c - Creating a SSH connection in a program? -


I am writing programming (in C) in which I have to access data from another computer via an SSH connection. I was wondering how to create SSH connections within the program.

Thanks

An easy solution for ssh binary Use and call from your program. Create 3 pipes using pipe () , then fork () , close () the proper end point (not sure that it is required ) So that you have 2 pipes with 3 pipes in the process on the child dup2 () staden, standout and stadder (i.e. FD 0, 1, 2) and exec () Pipe endpoint for ssh command

On the basic process you can now talk to the other side. Use RSA authentication to get rid of password content.

But to connect libraries simply, I do not know; -)


Comments