Links
| |
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:
- Acquire SSH Software and install it
- Launching SFTP
- Connecting to the server
- Logging in
- Make the www folder
- Set the permissions on the www folder
- Uploading files
- 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.
Step Three : Connecting to
the server
You should next see a window like this:
Now click on the "Quick Connect" button
Once you click on the "Quick Connect"
button, a window will appear that looks like this:
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:
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.
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.
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.
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.
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:
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 :
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:
If you need further assistance, please contact the OIT HelpDesk at 304-293-4444 or eMail oithelp@mail.wvu.edu.
|