Adsense code (2021-10-05)

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

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

scp
scp