SSH via C program
I need one help on SSH.
How shall i estalblish SSH connection to other machine and send my char *buffer through c program?
somewhere i have read that first we have establish connection to other terminal and then run program. In program, i just have to write char *buffer to stdout and my os will take care of putting this data on SSH channel. Any idea about this?
why do want to do it like that rather than using the functions like send and recv.
send & recv
send and recv work only with normal TCP/IP socket.
Here I need information on sending data through SSH.
In my C program, how shall I ensure that SSH channel is established? Then how to send data through that channel.
Can u explain on the send and recv functions mentioned above?
Originally Posted by ssharish2005
To be more specific we have a code dat uses exec service to remote login to a AIX machine.After login it uses send and recv functions.Now it needs to be changed so as to use ssh instead of exec.I am able to connect to the remote machine but there is a prob with send recv part.any help will be appreciated.
Your opening a thread which is about 3 years old. Please open a new thread.