Transfers a file from remote to local

ssh root@123.123.123.123 ‘cat /etc/squid/squid.conf’ > /home/Me/Documents/Tech/Squid/Temp/squid.conf

  • ReplaceĀ 123.123.123.123 with the ip address of the remote device you are copying from, whether it is your phone, a network attached storage device, a server, or another computer attached to the same network (Internet or local network).
  • Replace /etc/squid/squid.conf with the directory path to the file you want to copy from the remote device. This is the location on that device in its own directory structure. Do not forget to end it with the name of the file and the file extension on the end as well.
  • Replace /home/Me/Documents/Tech/Squid/Temp/squid.conf with the directory path to the file as it will appear on your local device, including the file name and extension.

Transfers a file from local to remote

scp /home/Me/Documents/Tech/Squid/Temp/squid.conf root@123.123.123.123:/etc/squid/squid.conf

See notes for Transfers a file from remote to local