Copy a Directory Recursively using SCP

scp -r [/local/path/] [user@host]:[/remote/path]

-r switch causes scp to copy recursively. It copies all files and directories under the one specified.

You can use the * wildcard as your local path to copy the current directory and everything below it.

rsync Alternative

You can also use the rsync command to copy files in a similar manner. rsync has a few more options and the advantage that it only copies changed files.

rsync -a [/local/path/] [user@host]:[remote/path/]
rsync -a ~/git/code/research/LambdaHOL/*
One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.