To transfer a file without worrying about its size, just launch an HTTP server and make a wget, curl
python -m SimpleHTTPServer 8000
php -S 0.0.0.0:8000
Be carefull, eveyone is able to browse this new server file system.
With an ssh accès, let use scp
scp file.txt remote_username@10.10.0.2:/remote/directory
scp -i id_rsa file.txt remote_username@10.10.0.2:/remote/directory
scp -P 2222 file.txt remote_username@10.10.0.2:/remote/directory
scp remote_username@10.10.0.2:/remote/file.txt /local/directory