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
command linesshUbuntu
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
Best Answer
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 itscp
-like usage.