11

I normally ssh into my remote server in order to administrate my files using terminal for Mac OS X.

I don't understand how I retrieve (download) files from the server to my local computer, or send files from my local computer to the server (upload).

Chealion
  • 25,408
  • 8
  • 67
  • 75
significance
  • 253
  • 1
  • 3
  • 7

1 Answers1

22

To grab a file over SSH:

$ scp host:/path/to/file local_file

To send a file:

$ scp local_file host:/path/to/file

scp is "secure copy", a copy utility that sends files over an SSH connection.

mipadi
  • 4,358
  • 1
  • 27
  • 27
  • there's also `sftp`, which is kind of like `ftp`, but uses `ssh` as the actual means of communication. – Isaac Apr 10 '10 at 18:37