Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

File transfering via SSH

Status
Not open for further replies.

Ux

Programmer
May 28, 2003
5
EE
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.



 
Here is a snippet from the man pages for 'scp':

DESCRIPTION
scp copies files between hosts on a network. It uses ssh(1)
for data transfer, and uses the same authentication and
provides the same security as ssh(1). Unlike rcp(1), scp
will ask for passwords or passphrases if they are needed for
authentication.


Regards,
Chuck
 
Note: the above command, 'scp', is after installing the openssh fileset from bullfreeware.com.

Regards,
Chuck
 
To: Chuck
I'm araid this (use scp)is impossible on the windows platform. My SSH client is Windows client.
Any way - thanks.
 
With the installation of ssh on the windows client did it also install secure file transfer?

Regards,
Chuck
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top