scp folder to remote server code example
Example 1: scp folder from server to local
scp -r [email protected]:/path/to/foo /home/user/Desktop/
Example 2: scp to remote server
scp ./file.txt remote_username@remote_ip:/remote/directory
scp -r [email protected]:/path/to/foo /home/user/Desktop/
scp ./file.txt remote_username@remote_ip:/remote/directory