sFTP Command Line Tool Reference

You can download Putty sFTP (psftp.exe) from the same place you get PuTTY.  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:

    pwd
    cd
    lpwd
    lcd

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

    ls
    !dir

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.)

    bye

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):

    unix2dos
    dos2unix


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