sftp file size limit

Hi,

Can some one please tell me the file size limit (if any) while using sftp

I am trying to transfer a file ( size is almost 350 MB ) but it fails as shown below.

sftp> put file1 ./file1
Uploading file1 to /dir1/./file1
file1 25%  100MB  10.2MB/s   00:28 ETA
Couldn't write to remote file "/dir1/./file1": Failure

Check if the remote directory has enough space left for your file. Otherwise it'll keep on failing.

Yes I checked.

Remote directory has more than 10 GB space available.

Or ulimit might be set for the userid.

below is the ulimit details

ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) unlimited
stack(kbytes) 8192
coredump(blocks) unlimited
nofiles(descriptors) 256
vmemory(kbytes) unlimited

Presumably you have attempted this more than once. So is the file size on the receiving end always exactly the same size? Can you send two 60 mb files successfully (in the same session.)

Just to be clear --
By ulimit jgt meant

  1. logon to the remote box
  2. issue the ulimit command over there as the ftp user
  3. ulimit on the "sending" side does not really apply.

It is good practice to set up ftp accounts with reasonable file size limits. Maybe the setup on the receiving box is too stringent. Or there are file quotas set on the remote user's account.

quota -v

on the remote box run as the remote user will show you.