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.