ssh and scp

Sending a single or a few files

scp /path/to/src/file user@server:/path/to/destination

Sending lots of files at once[1]

tar -C /path/to/src/dir -jcf - ./ | ssh user@server 'tar -C /path/to/dest/dir -jxf -'

References

  1. https://unix.stackexchange.com/a/10037

Last modified: 202401040446