4 ms·
scp uses a custom stream protocol over stdout/stdin. It's more like a tarpipe, though shares nothing in terms of format with that. SFTP is essentially RPC for
by formerly_proven 5y ago
scp uses a custom stream protocol over stdout/stdin. It's more like a tarpipe, though shares nothing in terms of format with that.
SFTP is essentially RPC for the various I/O syscalls (open, read, write, ...) - it's basically NFS-as-a-user over SSH. Read/write size is limited to 32 kB per request (in OpenSSH / minimum supported size).