Use ‘Secure Copy’ (scp) to Get or Push Files Remotely from Command-Line


FTP is perhaps the least secure means to transfer files over the Internet, so if you’re near a Unix terminal, fire it up and type:
To get files from a remote machine to your local machine:
scp <user@remote>:/path/to/file/file.ext  /local/path/file.ext  (replace <user@remote> with your username and remote address)To push files:

scp /local/path/to/file.ext user@remote:/path/where/you/want/it/file.ext

Tagged with: