Sending files by SCP (secure copy)

Category:

Send the whole current directory to a remote server

scp -r * username@hostname_or_ip:/home/username/directory/

Download a directory to the current directory

scp -r username@hostname_or_ip:/home/username/directory/ .