Top of page
Skip to main content
Main content

Remote Access Mac SCP


Transfer files between Mac and Emory server: scp (secure copy)

How to DOWNLOAD a file from your Emory lab-machines to your Mac
  1. Open a command window on your Mac
  2. cd (change directory) to your project directory on your Mac where you want to save the downloaded file.
  3. Suppose you want to upload the file to your cs171 on Emory lab-machines....

    (Change the folder name if you want to upload your file to a different folder)

  4. Execute this command to upload the file fileName on your Mac to the cs171 project folder on Emory lab-machines:
    scp fileName yourNetID@lab0z.mathcs.emory.edu:cs171

    You can replacecs171 with a different folder name if desired.

    Example: this command will upload the program proj1.java from your Mac to Emory:

    scp proj1.java yourNetID@lab0z.mathcs.emory.edu:cs171
  5. Type in your Emory NetID password when prompted
How to UPLOAD a file from your Mac to Emory lab-machines
  1. Open a command window on your Mac
  2. cd (change directory) to your project directory on your Mac that contains the file that you want to upload.
  3. Suppose you want to upload the file fileName inside your cs171/pj1 folder on Emory lab-machines....

    (Change the filename and folder name if you want to download a different file or from a different folder)

  4. Execute this command to download the file fileName in the cs171/pj1 project folder on Emory lab-machines: to your Mac:
    scp yourNetID@lab0z.mathcs.emory.edu:cs171/pj1/fileName .

    Make sure you type the period at the end of the command ("." means the currect folder on your Mac).

    Example: this command will upload the program proj1.java in the cs171/pj1 folder on Emory to your Mac:

    scp yourNetID@lab0z.mathcs.emory.edu:cs171/pj1/proj1.java .
  5. Type in your Emory NetID password when prompted

Where is my downloaded file:

The file transfered will reside in the directory when you CD-ed into in the command window. (on the Mac)

Warning when you downloading a file from Emory lab-machine:

  • The Mac has the nasty habit of renaming a transfered file.

    So you may find your transfered file has a .txt suffix aftertransfering it to your Mac.

  • If this happens, you need to:

    1. Open a command window on your Mac
    2. cd to the folder where the file resides
    3. Use the mv command:
      mv oldFileName newFileName
      to rename the file back to its original name....