Closed mrmarbury closed 6 years ago
More info:
started sshd with debug logs, i see the following on server side:
channel 0: adjust 131072 overflows remote window 4294852543
Seems to be from: update_local_window_size
sudo /usr/sbin/sshd -D -E /var/log/sshd.log -p 2222
$:.push('./lib')
$:.push('../net-ssh/lib')
require 'net/scp'
require 'byebug'
path = "/path/to/bigfile.txt"
Net::SCP.download!("localhost", ENV["USER"],
path, "/tmp/bigfix.tmp", ssh: { verbose: :debug, port: 2222 })
Should be fixed with https://rubygems.org/gems/net-ssh/versions/5.0.0.rc1 pls test
I have the following problem:
I try to dowload large files (20GB, 200GB) with net-scp and exactly after 4GB I get this error:
I can scp the file through the OpenSSH scp command just fine. So ulimit, file-system(128bit), quotas, server/client-config, and the like are not the issue. My OS and Ruby are 64bit as well (checked ruby with the unix
file
command).Are there any limitations in this implementation that I don't know about? Is there a flag that can be set?
Thanks for your help, Stefan