Copy a directory from localhost to a remote directory on a remote machine:
scp -r mydir username@remotemachine:/home/remotedirectory/
Copy a remote directory from a remote machine to the current directory:
scp -r username@remotemachine:/home/remotedirectory/ .
username is the user on remote host
remotemachine is the remote machine’s name or IP
remote directory is specified after the colon