People, HI!
Basic data and sequence of operations:
1. Have SSH client with programm interface (can call get and send methods).
2. Connent to the AIX (sshd standard SSH Server).
3. Send next commands:
stty -echo
cat >file1 2>/dev/null
... here I open file on the client machine, read buffers (or) strings and send them to the server
" pSSHControl->send(pBuff);"
... when reach end of the file I send
\x04\x04
stty echo
... and close connection.
THE PROBLEM: the transferred file on the server is corrupted - some packets what I sent from client are missed. SSH client sends packets right (checked by tracing).
Single knonw solution at this momemnt - send small bits (packets with small size or single source file line) and wait (call sleep ~ 1...1000 ms) after every bit sending. But in this case the sending time is very long...
Seems that SSH Server or tty, cat.. , don't know who well on the server side, can't proccess incomming packages so quickly as client sends and loses them.
May be anybody have any idea about this issue?
May be somebody had similar problem.
In other words - welcome any suggestion!
Thanks.
Basic data and sequence of operations:
1. Have SSH client with programm interface (can call get and send methods).
2. Connent to the AIX (sshd standard SSH Server).
3. Send next commands:
stty -echo
cat >file1 2>/dev/null
... here I open file on the client machine, read buffers (or) strings and send them to the server
" pSSHControl->send(pBuff);"
... when reach end of the file I send
\x04\x04
stty echo
... and close connection.
THE PROBLEM: the transferred file on the server is corrupted - some packets what I sent from client are missed. SSH client sends packets right (checked by tracing).
Single knonw solution at this momemnt - send small bits (packets with small size or single source file line) and wait (call sleep ~ 1...1000 ms) after every bit sending. But in this case the sending time is very long...
Seems that SSH Server or tty, cat.. , don't know who well on the server side, can't proccess incomming packages so quickly as client sends and loses them.
May be anybody have any idea about this issue?
May be somebody had similar problem.
In other words - welcome any suggestion!
Thanks.