bugzilla-daemon at mindrot.org
2024-Nov-09 12:25 UTC
[Bug 3750] New: With scp's switch from SCP to SFTP, streaming output no longer works
https://bugzilla.mindrot.org/show_bug.cgi?id=3750
Bug ID: 3750
Summary: With scp's switch from SCP to SFTP, streaming output
no longer works
Product: Portable OpenSSH
Version: 9.9p1
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P5
Component: scp
Assignee: unassigned-bugs at mindrot.org
Reporter: jeff at jefftk.com
After upgrading OpenSSH, running "scp user at host:file /dev/stdout"
now
gives:
ftruncate "/dev/stdout": Invalid argument
Couldn't write to "/dev/stdout": Illegal seek
I think this is due to the switch from the SCP to SFTP protocol: when I
use the -O switch to restore the older behavior it works again.
Streaming output is quite valuable to me: I often want to run commands
like:
scp remote:very-large-file /dec/stdout | aws s3 cp -
s3://bucket/dest
where the file is larger than my local disk or memory.
--
You are receiving this mail because:
You are watching the assignee of the bug.
bugzilla-daemon at mindrot.org
2024-Dec-04 22:06 UTC
[Bug 3750] With scp's switch from SCP to SFTP, streaming output no longer works
https://bugzilla.mindrot.org/show_bug.cgi?id=3750
Damien Miller <djm at mindrot.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |djm at mindrot.org
--- Comment #1 from Damien Miller <djm at mindrot.org> ---
I don't think this is possible to fix without considerable work.
As a workaround "ssh remote cat very-large-file | aws s3 cp -
s3://bucket/dest" should do the same thing with fewer steps
--
You are receiving this mail because:
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.