What is the terminal command to retrieve files from a remote server using ssh in Mac OS X?

12,619

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.

Share:
12,619

Related videos on Youtube

significance
Author by

significance

Updated on September 17, 2022

Comments

  • significance
    significance almost 2 years

    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).

  • Isaac
    Isaac about 14 years
    there's also sftp, which is kind of like ftp, but uses ssh as the actual means of communication.