ssh copy folder from local to remote code example
Example 1: ssh copy folder from local to remote
scp -ra /path/to/local/storage [email protected]:/path/to/copy
Example 2: ssh copy folder from local to remote
scp -r -P xxxx /path/of/your/local/folder username@hostname:/path/to/remote/server/folder
Example 3: ssh copy folder from local to remote
scp username@hostname:/path/of/remote/server/filename /path/to/local/destination/folder
Example 4: ssh copy folder from local to remote
scp -r /path/of/your/local/folder username@hostname:/path/to/remote/server/folder
Example 5: ssh copy folder from local to remote
scp -P xxxx /path/of/your/local/filename username@hostname:/path/to/remote/server/folder
Example 6: ssh copy folder from local to remote
scp /path/of/your/local/filename username@hostname:/path/to/remote/server/folder
Example 7: ssh copy folder from local to remote
scp -P xxxx username@hostname:/path/of/remote/server/filename /path/to/local/destination/folder