Thursday, January 9, 2014

Download file using SSH with scp command

The Linux command scp, securely copying files, uses ssh for data transfer, to copy file to, from, or between different hosts.

To download file from server using ssh, using the command:

$ scp user@hostname:file local-directory

scp pi@ ~/PiLog
where pi is user name in server with IP, copy ~/log1 from server to local directory ~/PiLog.