Top of page
Skip to main content
Main content

Remote Access Linux


Transfer files between Mac and Emory server: sftp

How to use sftp
  1. Open a command window on your Mac
  2. Cd (change directory) to your project directory on your Mac
  3. Then execute the command:
    sftp yourEmoryNetID@lab0z.mathcs.emory.edu
    on your Mac
  4. Login with your Emory password.

    You will see this prompt:

    sftp>
  5. Inside the sftp program, type these commands:
    sftp> cd  folderName     (e.g.:  cd  cs255/hw2)
    
    Note: if the folderName starts with a ~ (i.e.: ~/folderName),
          then you need to replace ~ with /home/yourNetID.
    
    E.g.: If I (cheung) want to change directory to ~/graded-work/MT, I use:    
          cd /home/cheung/cs255/graded-work/MT

    Then:

    1. use the get command to transfer a file from Emoryto your Mac
      sftp> get  fileNameOnEmory
    2. use the put command to transfer a file from your Macto Emory
      sftp> put  fileNameOnYourMac

The file transfered will reside in the directory when you CD-ed into (on the Mac and on Emory)


Warning:
  • 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

You need to rename the file back to its original name....