ssh icon indicating copy to clipboard operation
ssh copied to clipboard

scp server example and simple client

Open lonnietc opened this issue 3 years ago • 1 comments

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

lonnietc avatar Dec 24 '22 15:12 lonnietc

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

jpillor-macquarie avatar Jul 18 '23 04:07 jpillor-macquarie