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