Mac Terminal SSH file transfer?

Yes, you can use scp , which basically cp over ssh. It can work either way also, so:

scp ~/Document/Localfile remoteuser@remotemachine:~/Desktop

or

scp remoteuser@remotemachine:~/Destkop/remotefile ~/Desktop

The first command would copy a file to the remote machine, the second would copy a file from the remote to the local. The syntax is <user>@<machine or ip>:<file> you can do a man scp for more switches and options


The scp command on Linux is how you do file transfers using SSH

Tags:

Terminal

Ssh

Mac