3 ms·
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. (rs
by comex 6y ago
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 https://github.com/spmjs/node-scp2
- deleted 6y ago[deleted]
- fanf2 6y agopscp might be what you want https://the.earth.li/~sgtatham/putty/0.73/htmldoc/Chapter5.html#pscp https://the.earth.li/~sgtatham/putty/0.73/htmldoc/Chapter5.h...
- comex 6y agoInteresting. 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 :)
- Hello71 6y agoopenssh 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".