Skip to main content
Print/Share/Save
MySpace
Digg
Delicious

SFTP

WEB-STATIC serves forcollegeandcommunity.org and artscenter.naz.edu using basic, flat-html files. There are no server-side dynamic languages supported.

Users can edit web files using the Secure File Transfer Protocol, or SFTP. SFTP is configured to use public-keys, which are more secure than the more traditional username/password; nevertheless, after some initial setup, we believe this arrangement is also more convenient than a password, because you don't need to remember or type your password. We have tested on Windows, Mac OS X 10.5, and Linux. The instructions on this page will work with any web editing software, but our focus is on Adobe Dreamweaver as that seems to be popular.

There are three simple setup steps:

  1. Generating a Keypair
  2. Connecting to the Server
  3. Configuring Dreamweaver

Generating a Keypair

In lieu of a traditional username/password "challenge" authentication, we use a private / public key. This arrangement is very secure, but it is also very convenient, because you don't have to type all of them!

Windows Instructions

  1. Download and run PuTTYgen.
  2. Click "Generate" and move your mouse to generate entropy Screenshot of PuTTYgen entropy screen
  3. Enter a key comment and key passphrase (the longer, the better). Then, save your public key and private key in a safe place. PuTTYgen Main Screen
  4. Copy and paste your public key from the large textbox, and email it to web@naz.edu with your request for access.
  5. Under the "Conversions" menu, select "Export OpenSSH Key" and save it someplace safe. We'll use this key in the next step.

Mac / Linux Instructions

  1. Open a new shell or terminal. On the Mac, you can find the Terminal application under Applications > Utilities.
  2. Type ssh-keygen and answer the questions when prompted. Some examples are below:

    $ ssh-keygen
    Generating public/private rsa key pair.
    Enter file in which to save the key (~/.ssh/id_rsa): (just press return)
    Enter passphrase (empty for no passphrase): (this password protects the key file itself. You won't have to type it very often, so make it good.)
    Enter same passphrase again: (enter it again)
    Your identification has been saved in ~/.ssh/id_rsa
    Your public key has been saved in ~/.ssh/id_rsa.pub
    The key fingerprint is:
    Some really long string
  3. The ~/.ssh/id_rsa file is private and important -- keep it safe. Email the public key file, ~/.ssh/id_rsa.pub, to web@naz.edu with your request for access.

Connecting to the Server

To simplify connection to the server, we are going to set up and mount a virtual filesystem. This will allow you to see all of the files on the server and interact with them as seamlessly as if they were on your computer's hard drive, while still maintaining security.

Windows Instructions

  1. Download and install (in order)
  2. Run the Dokan SSHFS Program (installs to Start Menu by default), and enter in the settings as shown. Select "Identity" and browse to the location of your private key file. For "passphrase", enter the private key's passphrase. Choose a drive letter to use for this connection. When you're happy, you can enter a "name" and save your settings. sshfs_01.gif
  3. Click "Connect". A drive letter will appear in your Windows Explorer / My Computer interface, which contains the contents of the server. sshfs_01.gif

Mac Instructions (Tested on OS X 10.5 and 10.6)

  1. Download and install MacFUSE (installer); install it and reboot.
  2. Download and install Macfusion; unzip it and move the file "Macfusion 2" to the Applications folder.
  3. If you're running OS X 10.6
    1. Quit Macfusion, if it is running
    2. Open System Preferences and click the "MacFUSE" pane. Check "Show Beta Versions"
    3. Update Macfusion
    4. Open up a terminal (Applications → Utilities → Terminal) and type the following, followed by the return key (all should be on one line)
      rm /Applications/Macfusion.app/Contents/PlugIns/sshfs.mfplugin/Contents/Resources/sshnodelay.so
    5. Close the terminal
  4. Open the Macfusion application and click the plus sign in the lower left corner to add a SSHFS connection.
  5. Add a name for the connection, and in the Host field put the name of the server, such as myfunsite.naz.edu. macfusion_01.gif
  6. The rest of the fields should be left as their defaults. (Your username should already be in the user name field.)
  7. Click OK, then click Mount to make the connection.
  8. The mounted filesystem will be in the finder at /Volumes/myfunsite.naz.edu (varies depending on the name). Press ⌘R to view it.

Linux Instructions

If you need instructions for Linux, please contact the ITS Web Team at web@naz.edu. There are numerous Linux distributions available, each with their own nuances and quirks, so we'd rather help on a case-by-case basis — especially if you're going to try to run Dreamweaver on Linux!

Configuring Dreamweaver

This is the easiest part. Just tell Dreamweaver to treat the remote site like it's on your local workstation.

Instructions

  1. In Dreamweaver, go to the Site menu and click "Manage Sites".
  2. Add a new site (or edit one, if you’re changing an existing configuration.)
  3. On the Remote Info tab, set Access to "Local/Network".
  4. Click the Browse button and navigate to your mounted filesystem. It's probably something like /Volumes/myfunsite.naz.edu/myfunsite.naz.edu (on the Mac), or N:\ (on Windows)

That’s it!

Personal tools