ssh
ssh copied to clipboard
scp server example and simple client
Hello,
I am building a project that will use ssh for the file transfers and have read that SCP is much faster than SFTP for actual file transfers, but that SFTP has file operations that SCP does not.
With this in mind, it would seem that for the lowest latency transfers that an SCP client/server model would be best.
Do you have any examples of these? Thanks
FYI, the scp tool uses the sftp subsystem
$ scp -v <(echo helloworld) myserver:~ 2>&1 | grep subsystem
debug1: Sending subsystem: sftp
See https://github.com/gliderlabs/ssh/tree/master/_examples/ssh-sftpserver