I tried it with SCP, but it says "Negative file size".
>scp matlab.iso xxx@xxx:/matlab.iso
matlab.iso: Negative file size
Also tried using SFTP, worked fine until 2 GB of the file had transferred, then stopped:
sftp> put matlab.iso
Uploading matlab.iso to /home/x/matlab.iso
matlab.iso -298% 2021MB -16651.-8KB/s 00:5d
o_upload: offset < 0
Any idea what could be wrong? Don't SCP and SFTP support files that are larger than 2 GB? If so, then how can I transfer bigger files over SSH?
The destination file system is ext4. The Linux distribution is CentOS 6.5. The filesystem currently has (accessible) large files on it (up to 100 GB).
ssh
, I assume you require the authentication and/or encryption features? – Ulrich Schwarz Mar 16 '15 at 17:23netcat
or a torrent connection to transfer the file. Anssh
pipeline for this is a waste. – mikeserv Mar 16 '15 at 18:20netcat
? If you do usenetcat
make sure it is the BSDnetcat
- GNUnetcat
sucks hard. – mikeserv Mar 16 '15 at 18:33-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
. But if you're running a 64-bit 6.5 system, it'd probably be easier to have the admins installopenssh-5.3p1-94.el6_6.1.x86_64
andopenssh-server-5.3p1-94.el6_6.1.x86_64
from the standard repos. – Mark Plotnick Mar 16 '15 at 21:02