Main content
Remote Access Linux
Transfer files between Mac and Emory server: sftp
How to use sftp
- Open a command window on your Mac
Cd(change directory) to your project directory on your Mac- Then execute the command:
sftp yourEmoryNetID@lab0z.mathcs.emory.edu
on your Mac - Login with your Emory password.
You will see this prompt:
sftp>
- Inside the
sftpprogram, 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:
- use the get command to transfer a file from Emoryto your Mac
sftp> get fileNameOnEmory - use the put command to transfer a file from your Macto Emory
sftp> put fileNameOnYourMac
- use the get command to transfer a file from Emoryto your Mac
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....