copy folder other server ssh code example
Example: how to copy directory to a ssh server
# Copy from machine a to b
scp -r /path/to/directory user@ipaddress:/path/to/destination
# Copy from machine b to a
scp -r user@ipaddress:/path/to/destination /path/to/directory