The steps below will walk you through transferring files using the sftp command in Terminal.
On your local machine, open a Terminal session. Navigate to the directory where the file(s) you want to transfer are located.
Enter the following command to establish an sftp connection with the server.
Enter your password when prompted.
Note: You need to use your own Username/NetID.
grahamhenke is used here only as an example.
You will see an
sftp> prompt. Use the
put command to transfer files. For example, if you have a file named
analysis.ipynb, you can transfer this by running the following command.
Reminder: You need to make the sftp connection from the directory on your local machine where the file exists.
Once you are finished, type
bye at the
sftp> prompt and press return. The image below shows all of the steps executed in succession from the Terminal.