Use scp to transfer a folderfrom local directory X to remote directory Y code example
Example: scp folder from server to local
scp -r [email protected]:/path/to/foo /home/user/Desktop/
scp -r [email protected]:/path/to/foo /home/user/Desktop/