Search:
  University Web Sites
  Camden Web Sites

  Computing
  Services:

  About Us
  FAQs
  Office of Information
    Technology (OIT)

  Lab Reservations
  Smart Classrooms

  Jump to:
  Camden Campus
  Camden Web Mail
  myRutgers Portal
  RU Libraries
  RU Main

  Questions
  Comments

Camden Computing Services
  SupportStudentsFaculty and Staff_

Printer Friendly

Using SFTP

Computing Services Information Document S50-1325




Introduction

Secure FTP is a newer version of the FTP protocol, and is used to provide secure encrypted and authenticated communications between two hosts. SFTP makes it easy and convenient to transfer files between your local computer and the remote host computer. You can upload and download files by using an intuitive, graphical user interface similar in functionality to the Windows Explorer.

*Note: On campus housing residents and home users need to install "SSH" in order to have SFTP availabe.



For Windows PCs:

Once Secure Shell has been installed on your computer, click on the "Start" button, select "Programs", and highlight the "SSH Secure Shell" program group. Click on the entry for "Secure File Transfer Client". You will be greeted with the following window:


To open a connection with a remote host, click on the "File" menu, then choose "Connect". In the dialog box that appears, type in the full name of the remote host, as well as your username. When finished, click on the "Connect" button:

If this is the first time you are connecting to a site, a warning message will appear.  Click on Yes to save the host key to your local database.  This will place a copy of that system's encryption key on your computer, and then you will be connected as if you telnetted in.  This host key will not expire, and if you ever try to connect to clamshell or crab and the ssh client warns you that the host key has changed, check the Camden Computing Services Announcements to see if there is an announcement about a host key change, do not just accept the changed key without verifying that it has changed.

You will then be prompted to enter your password. Choose "OK" when finished.

Upon logging in to the remote host, the directory you are currently in will be listed in the left window pane on your screen. In the right, you will see a listing of files in your current directory.



If you are in the directory where you would like to transfer a file, simply drag it from your local computer into the SFTP window. This "drag-and-drop" feature will upload the file to the remote host. You can also transfer files from the remote host by dragging them to your local computer (such as your desktop).

When transferring multiple files from the remote host to your local computer, the "Download" option is very useful. First, highlight all files that you are interested in transferring. Then, click on the "Operation" menu, and choose "Download".



A window will appear, asking you to specify a destination directory for your transfer. Choose "Download" when you are ready. The selected files will be transfered to your local computer. The exact can be done for transferring multiple files to the remote host using the "Upload" feature.


If you encounter problems accessing a file you have just recently uploaded, verify that the default file permissions are correctly set. Click on the "Edit" menu, then click "Preferences". The settings dialog box will appear.



In the panel to the left, expand the tab for "File Transfer". Click on the submenu for "Advanced". Check that the "Default File Permission Mask" is set to 644, and the "Default Directory Permission Mask" is set to 755.


For more help using SFTP, please review the included documetation by clicking on the "Help" menu and choosing "Contents". Questions or concerns? Please e-mail us at help@camden.rutgers.edu


 
 

III. On Macintosh:

1.  There is a package called MacSFTP. It is used as the replacement for the old and insecure File Transfer Protocol (FTP), with the addition of strong
     Encryption/Authentication. We do not support MacSFTP on our mac computers. However, if you'd like to use the software, see MacSFTP webpage for more
     information.
 

I. On Unix:

At the shell prompt, type
            "sftp clamshell" if you are a student
or,
            "sftp crab" if you are faculty/staff
to connect to your home directory. You will be prompted for your password.

At the sftp prompt, if you do a "ls" you will see a list of the files in your home directory. From here, it will just be similar to ftp. Some useful sftp commands are as follows:

sftp> cd path                        to change remote directory to path
sftp> lcd path                       to change local directory to path
sftp> chgrp grp path             to change change group of file path to grp
sftp> chmod mode path        to change permissions of file path to mode
sftp> chown own path          to change owner of file path to own
sftp> get file_name               to get a file from the remote machine
sftp> put file_name               to put a file to the remote machine
sftp> mkdir path                   to create remote directory specified by path
sftp> ls                                 to display remote directory listing
sftp> pwd                            to display remote working directory
sftp> rename                        to rename remote file
sftp> rmdir path                    to remove remote direcotry specified by path
sftp> binary                          to transfer files in binary mode
sftp> exit                              to quit sftp
etc

For more information, see the manual for sftp by typing "man sftp" at the unix shell prompt.
 




Questions/comments regarding Camden Computing Services or this web site
can be directed to: help@camden.rutgers.edu.
Last updated: August 13, 2009, 07:58 EDT.

© 2005-2008 Rutgers, The State University of New Jersey. All rights reserved.