I want to download files from a remote server to my local drive, and do it from the command line. I also want to be able to do this over SSH. How can I do this?
Note: the remote server is Ubuntu, the local is Mac OS X
|
I want to download files from a remote server to my local drive, and do it from the command line. I also want to be able to do this over SSH. How can I do this? Note: the remote server is Ubuntu, the local is Mac OS X |
|||
|
|
|
Use scp-command, it runs on top of ssh. Example:
It also works another way round
Username, path, and filename can be omitted (but not the : !). As Iain said, sftp works also, but I tend to favor scp for its cp-like usage. |
|||||||
|
|
If you can't use scp or sftp you can use tar over ssh:
This one is also good if you have sparse files which otherwise will "explode". |
|||
|
|