ssh copy directory from local to server code example
Example 1: ssh copy folder from local to remote
scp -r -P xxxx /path/of/your/local/folder username@hostname:/path/to/remote/server/folder
Example 2: ssh copy folder from local to remote
scp username@hostname:/path/of/remote/server/filename /path/to/local/destination/folder