Hello ,
i am trying to write simple program that will take a file of commands execute them one by one on remote machine and store results of execution in another file i followed example ssh2_exec.c and i worte a loop to read commands and execute it like this : create socket with none-blocking mode create session loop on a file read first command open new channel channel execute channel read channel_get_exit_status channel free channel == null my problem is after executing first command the connection is closed by remote machine with TCP rest flag so i sniffed the communication between the program and remote machine and i got the following : on program side : all packets are sent like tcp segment of reassembled pdu remote machine side : the whole session is duplicated ACK and tcp out of order packets so after executing first command remote machine is getting confused and closes the connection with reset flag i tried to program the socket in every possible way without success .and on note on the remote side is running SSH 2.0-ROSSSH Any help ? Thank you in advance
_______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
