1

I am using ssh (WinSCP) to transfer some files from a server to my workstation.

The problem is that at some files I get disconnected. Always same files. I am the owner of the directory so I guess the file permissions is not a problem. (Also I set the permissions to 777). Is there a size limit or something like that?

Protocol is SFTP, server is 32bit machine. Files are 100MB tops.

Added:

Worked with Filezilla using ftp. This temporarily fix the problem but is not exactly a solution since maybe next time I won't have root access to create a ftp account

Starfish
  • 2,716
  • 24
  • 28
zozo
  • 753
  • 3
  • 11
  • 22
  • Some more information you should include: What is the target operating system (also 32/64 bit)? How large are the files? What protocol are you using in WinSCP (It supports SFTP, SCP and SSH connections)? – Kyle Smith Jun 23 '11 at 14:21
  • You have enough free space right? – Chopper3 Jun 23 '11 at 14:34
  • For setting read permissions for yourself, it is sufficient to do `u+r` on the file. You create potential problems by setting stuff 777. Don't. – wzzrd Jun 23 '11 at 14:34
  • Edited, added all u asked. – zozo Jun 23 '11 at 14:37
  • @Chopper about 1TB for 3 100MB files... should do :) – zozo Jun 23 '11 at 14:37
  • 1
    what version of winSCP are you using? I've had similar issues with 4.x. Try an older winSCP version. – sreimer Jun 23 '11 at 14:58

5 Answers5

1

Are the files that you get disconnected on quite large ? Perhaps you need to configure keepalive in winscp. In the Login Dialog->Connection Section turn keepalives on by selecting one of the options. The default 30s should be sufficient for the time between keepalives.

user9517
  • 114,104
  • 20
  • 206
  • 289
  • I tried... same problem. The files are not large... are larger than the rest but not so large. – zozo Jun 23 '11 at 14:38
1

Can you use another program than WinSCP for testing and set debugging / verbose mode on? Or maybe WinSCP has that too. It might give you good information about why the connection was dropped.

wzzrd
  • 10,269
  • 2
  • 32
  • 47
1

Some options:

Try one problem file on its own

Try using another client (FileZilla?)

Try via a command line ?

AndyM
  • 901
  • 2
  • 14
  • 26
1

Is this transfer going through a Firewall or Intrusion Prevention device? They can easily cut connections based on flaky signatures, weird flags, etc. it's also possible a Antivirus scanner could pull off the same thing.

Starfish
  • 2,716
  • 24
  • 28
Christopher Karel
  • 6,442
  • 1
  • 26
  • 34
  • Nothing like that... I guess is size related as most ppl suggested... but 100MB is quite small. – zozo Jun 24 '11 at 09:31
-1

I would compress the files into a tar ball. And then transfer just the one file across. It will be a lot quicker. Then SSH into the target server, and uncompressed it.

Mister IT Guru
  • 1,158
  • 3
  • 15
  • 35