There are times when we need to upload files via command line. Luckily, Mac offers an SCP software built-in unlike Windows that you’ll need to install WinSCP.
To do so, open a terminal and run the following commands:
scp username@remotecomputer:/path/to/file/you/want/to/copy where/to/put/file/on/laptop
Then we’ll just need to type the password of that username over SSH.
scp email@example.com:/MyFiles /home/web/site-name/public_html/files