Click to go to the WVU homepage Search this site.
Click to submit search request.
 

UNIX Systems Group

Fri Jul 4th, 2008 @ 3:46 pm EDT
 

Links

Services
Software
Forms
Documentation
Org Chart
Mission and Goals
 

SFTP HowTo

To update or create your homepage on the central server, you will have to use SFTP to connect to the machine. The reason you have to use SFTP, is it is a secure way to transfer files between machines. Normal FTP transfers usernames and passwords in clear text. SFTP, on the other hand, encrypts all traffic between machines.

The first thing you need to do is get your Central ID userid if you have not already established one. It can be setup at http://centralid.wvu.edu

There are 8 steps to getting started:

  1. Acquire SSH Software and install it
  2. Launching SFTP
  3. Connecting to the server
  4. Logging in
  5. Make the www folder
  6. Set the permissions on the www folder
  7. Uploading files
  8. Check permissions on the uploaded file.


Step Two : Launching SFTP

The first step is to launch the SFTP client. There should be an icon like the one below on your desktop. Double click on it.
sftp icon


Step Three : Connecting to the server

You should next see a window like this:
Larger Image of SFTP Window

Now click on the "Quick Connect" button Quick Connect button

Once you click on the "Quick Connect" button, a window will appear that looks like this:

Connect to Remote Host Window


Step Four : Logging in

Fill in the hostname as sftp.community.wvu.edu Below it, enter the username that you received from the CentralID server. In this example the username is jcg000

Once you have this done, click Connect

If this is the first time you have connected to this system, you will receive a window like the one below:

Host verification window

Go ahead and click the Yes button. What this window is telling you is that it is talking to the machine sftp.community.wvu.edu for the first time, and it wants to store its public encryption key on your computer. If you click no, you can continue, but you will be asked this question every time you try to connect to the server.

Once you hit "yes" in the previous window, or "Connect," after you have saved the key, you will be presented with the password box.

password prompt

In this box enter, in your CentralID Password. Then click on "OK" or hit enter.


Step Five : Making the www folder

After you type in your password and are connected to the server, you need to create a www folder on the server (Remote Side). To create the www folder, click on the "New Folder" icon shown below. It is located above the right hand panel in the SFTP window. Name the folder, in all lower case letters, "www" without the quotes.
If you name the folder anything except www no one will be able to see your web site. It must be named www in all lower case.
new folder icon


Step Six : Setting the permissions

To make your website visible to the world, you need to make sure the permissions on the "www" folder are set correctly. To check the permissions, right click on the "www" folder and select "Properties". The window should look like the one below. If it does not set the permissions so it mirrors the one below.
Folder Permissions screen


Step Seven : Uploading a file

Now, all you need to do to transfer files is double click on the "www" folder on the remote host (right panel), select the folder your webpage files are in through the left hand panel, then drag and drop the files into the right hand panel. Note: All files you wish to be in your web site must be in the www directory or a sub folder under the www folder.
After transfering files


Step Eight : Check file permissions

Once you upload the file, you need to verify that other people (including the web server) can see it. The permissions are shown next to the file in the remote window on the right:
File permissions screen show

If the Attributes show -rw-r--r--, they are correct, and you do not need to change the permissions on the file. If they do not, you will need to right click on the file, and select properties, and a window like this appear :

File Permissions
Make your file look the same as the screenshot above.

Finishing up

Once you are done uploading your files, you can disconnect from the server by clicking on the icon that looks like the one below:
disconnect from remote host

If you need further assistance, please contact the OIT HelpDesk at 304-293-4444 or eMail oithelp@mail.wvu.edu.

 
1 Waterfront Place, PO Box 6504, Morgantown, WV 26506 WVU is an affirmative action/equal opportunity institution. Click to go to  the WVU homepage.