News for hackers. Stuff that matters.
Re:SCP – Familiar, Simple, Insecure, and Slow by comex on Friday June 19, 2020 @07:33PM (#23579978)
Is there a tool that mimics the interface of SCP but uses SFTP under the hood? Then I could alias `scp` to that and forget about the SCP protocol forever. (rsync is not good enough: it requires rsync to be installed on the target server and seems to be slower than SCP in some cases.)

The proprietary ssh.com implementation of SSH apparently has one called "scp2", but I don't see any open source version.

Well, except for this, but it's tagged "[MAINTAINER WANTED]" and written in JavaScript:

https://github.com/spmjs/node-scp2

Re:SCP – Familiar, Simple, Insecure, and Slow by fanf2 on Friday June 19, 2020 @10:55PM (#23581141)
Re:SCP – Familiar, Simple, Insecure, and Slow by comex on Saturday June 20, 2020 @03:24PM (#23586292)
Interesting. That does seem to match the description, so thanks for mentioning it. On the other hand, PuTTY doesn't seem to support loading OpenSSH's configuration, only its own format – so my private keys, host aliases in ~/.ssh/config, and known_hosts would have to be duplicated. And they would quickly get out of sync unless I switched to PuTTY for all SSH use.

Seems like a lot of effort when, In Theory, this would be a pretty straightforward wrapper to build on top of libssh, which can load OpenSSH's configuration files, or perhaps on top of OpenSSH's ssh/sftp binaries directly. But I'm too lazy to write one myself, so I was hoping someone already had :)

Re:SCP – Familiar, Simple, Insecure, and Slow by Hello71 on Friday June 19, 2020 @11:01PM (#23581187)
openssh sftp does half of this. you can get a file with one or two args (sftp remote:file [localfile]), but to put a file you need to echo put; sftp localfile remote:file gives "cannot connect to localfile".