Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 05-31-2011, 06:31 PM   #1
Registered: Dec 2003
Posts: 78

Rep: Reputation: 1
cygwin scp file copy counters stop incrementing/decrementing


I'm running cygwin 1.7.7 on a win2k3R2 Standard edition server. I have a RHEL 4.7 linux host I'm scp'ing files from to the windows system using a simple cygwin scp command from what appears to be OpenSSH_5.5p1 on the cygwin host.

When I run the simple scp command on the cygwin host, the counters initially display and increment/decrement, albeit what is at a much slower rate than is actually taking place.

After the percent complete reaches a little less than 10%, all the counters from the cygwin console window cease to increment/decrement.

However, when I cd to the directory on the cygwin host where the file is being scp'ed to, the file is continuing to be transferred and a much higher rate than the counters seem to show.

Finally, when the file transfer is complete by directly seeing the byte count as equal between the hosts, the scp counters will suddenly jump to 100% complete.

This is not the case with my linux to linux scp's. The counters increment/decrement as expected and transfers are about what I'd expect over the same network infrastructure.

This appears to be a cygwin ssh/scp implementation issue. I've posited this question to cygwin with no response as yet. The only reference I've been able to find on the 'net refers to buffering causing file transfers to appear to complete later than the transfer really does.

The fact that the transfer appears to actually complete is good. However, I have some timing dependent processes before and after the scp's take place. Rather than using an old fashioned stopwatch and timing the file transfers manually, I was really wanting to use the full scp functionality to do the timing for me.

So the question is, is this normal (dis)behavior for the cygwin port of scp/ssh? I'm not using any options for the scp command. The version of ssh appears to be OpenSSH_5.5p1 called by the cygwin system or whatever cygwin is.

Any thoughts? Anyone have the same issue with this pretty vanilla configuration?


Old 06-02-2011, 06:07 AM   #2
Senior Member
Registered: Dec 2003
Location: Trondheim, Norway
Distribution: Debian and Ubuntu
Posts: 1,293

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335

Not sure, but you could try pscp and compare the results. It should reveal if it's something to do with cygwin or some other thing. The pscp is native win32 so it doesn't use cygwin. You can download it the same place as you download putty:
Old 06-02-2011, 11:58 AM   #3
Registered: Dec 2003
Posts: 78

Original Poster
Rep: Reputation: 1
Thanks for the info. I'll check it out. My only concern is adding another variable into an already complicated process. I'm willing to bet you're right in that pscp should work. And I've had no response from the folks at cygwin on why their supposedly native scp process doesn't work as advertised.

Thanks again... I'll let you know what the results are.

Blaine Miller
Old 06-15-2011, 04:51 PM   #4
Registered: Dec 2003
Posts: 78

Original Poster
Rep: Reputation: 1
Marking this as solved although it really isn't. I got word back from cygwin that both of their file transport process ports, scp and rsync, are flawed. They either don't work or fail somewhere along the way.

It looks like my only alternatives are to use NFS, SAMBA, an alternate 3rd party product of some combination of these to do the kind of transfers I'm looking to do.

Thanks to everyone for viewing and leaving pointers.



cygwin, scp

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
SCP copy file with dynamic date( or something like that) Shinigami101 Linux - Software 3 11-19-2008 08:56 AM
SCP Copy File SSH petenyce Linux - Wireless Networking 2 10-05-2005 04:11 PM
scp/ssh tail(multiple file) remote copy tpreitano Linux - General 1 08-22-2005 03:17 PM
scp :copy file from one remote comp to another aniketh Linux - Networking 4 06-16-2004 03:31 AM
RX bytes: xxxx stop incrementing gyu Linux - Networking 1 03-10-2003 10:42 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:47 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration