sFTP Command Line Tool Reference

You can download Putty sFTP (psftp.exe) from the same place you get PuTTY.  If you previously used the installer, you probably already have this tool on your system.

Mac users:  No additional software is needed.  Just open a console (terminal) window, and type:

   sftp ub00@yborstudent.hccfl.edu

(replacing ub00 with your correct login name).  You will only be prompted to ender your password, not the hostname or your login name.)

After launching psftp.exe (or any other secure FTP program) type:

    open YborStudent.hccfl.edu

It will prompt for user-id and your password.  After sucessfully loggin in you will see the sFTP prompt.  There are a number of commands you can type at this prompt, enter "help" to see a list.  The most important ones are:


These command show and change the current directory on the remote system (pwd, cd) and the local system (lpwd, lcd).

    !dir    (That should work from a Mac, Windows, or Linux system.)

These commands show the files on the remote and local system.

    get file
    put file

These commands download (get) and upload (put) some file.  (You can use wild-cards to transfer several files with one command.)


This command ends the sFTP session.

Note that Unix text files handle end of line differently than Windows/DOS text files.  To correctly view a Unix text file on a Windows system, using Notepad for instance, requires converting the text file from Unix to windows format.  Unix provides these commands you can use before downloading (that is, these aren't sFTP commands, they are Unix commands that can't be executed from the sFTP prompt):


(For an easy-to-use GUI wrapper for PuTTY on Windows, check out “WinSCP”.  See the link in the class resources list.)

Send comments and questions to pollock@acm.org.
Valid HTML 4.01!   Valid CSS!   CAST: Bobby WorldWide Approved 508   CAST: Bobby WorldWide Approved AAA