The Hills Server and FTP
In order for CCSF students to publish (FTP) their Web Pages onto the Hills server, it is very important to understand a few basic things.
Every registered student in CNIT 132 and CNIT 133 will be automatically given an account
on the Hills Server.
1. Getting Started:
- Obtain your hills login (same as your userid).
You can find out what your hills userid is by checking Web4 (WebSTARS).
To do so, log into Web4
Then choose Personal Information, then Google Student email.
Initial passwords continue to be birthdates in the format mmmddyy
(for example: 1/14/10, which is jan1410 in mmmddyy format).
Students who had accounts last semester have those same accounts this
semester; we have not changed the passwords or disturbed the contents.
If you still cannot find your hills userid then email me.
Notes:
1. Your hills login is NOT the same as your Insight login.
2. For currently registered students, your hills login will NOT be available until
the first day of the semester.
3. If you are adding into a class, it normally takes 24-48 hours for your hills login to be created from the time that you actually added the class.
- Connecting to the Internet.
Windows users can download SSH Secure Shell. Right now it is the 7th link from the bottom and is called
sshSecureShellClient-3.2.9.exe. Here is a
Tutorial about installing SSH Secure Shell. After installation, open this program and click the file option and then the connect option. Enter hills.ccsf.edu for the Host Name, your hills login for the User Name, leave Port as 22, and Password for the Authentication Method. Then click connect and enter your hills password when prompted. Save this connection via the profile prompt for future use.
Another Windows program that can be used is PuTTy. In the past, Windows users used telnet to access their hills account.
Mac users can download NiftyTelnet 1.1 SSH. Mac users who are on OS X
will NOT need an SSH program to link to hills.
Just open a "terminal" window. ("Terminal" is found in the Application / Utilities Folder).
Then type:
ssh loginID@hills.ccsf.edu
And then enter their password when prompted.
- Accessing your hills account:
New students to the hills server need to set up their permanent password by following this
Tutorial.
- NOTE: If at any time you have trouble with your hills login or password, you will need to either send me an email or see a tech person in the CCSF computer lab. The computer lab (ICL-1) is located on the 3rd floor of Batmale Hall. There are other computer labs on the CCSF campus as well. Here are the hours of operation for all computer labs at CCSF.
2. Create public_html directory:
All of your web files must reside in a directory called public_html. This will be a directory that you must create.
- Connect to your hills account.
- At the $ prompt, create the public_html directory and give it unix execute permission as follows:
mkdir public_html
chmod og+x public_html
(Note: mkdir stands for make directory and chmod og+x gives your directory execute permission and stands for change mode for others and groups to allow execute permission)
3. Publishing your Webpages (FTP):
- Upload your webpage to your public_html directory on the hills server. If you are uploading your homepage, it is called index.html.
Windows users should use the Secure File Transfer Client, which comes bundled with the SSH Secure Shell Client.
Here is a Tutorial on using Secure File Transfer. A nice feature of Secure File Transfer is that transferred files are, by default, automatically given unix permissions on the hills server.
A good Windows program that can be used for FTP that I have
found useful and easy to use is WinSCP. It's open source and free.
Note that with the above FTP programs, you would still need a telnet type program to change your hills password. If you are a new hills user,
this password must be changed immediately. In addition, your hills password must be changed every three months.
Mac users can use fetch or Mac SSH for FTP.
Mac users with OS X can download and use a freeware program called Fugu.
- Using your FTP program, upload index.html to your public_html directory.
4. View your homepage in your browser:
Launch your browser and view your homepage
The URL of your homepage will be:
http://hills.ccsf.edu/~LOGIN
where LOGIN is your hills login. (for example: mbeard1)
http://hills.ccsf.edu/~mbeard1
If the proper unix permissions have NOT been given, then viewing your homepage in a browser will display the following messages:
Forbidden
You don't have permission to access /~LOGIN/index.html on this server.
(NOTE: This is the most common error for students when they first try to publish their homepage onto the Hills server. It is especially common for students who have NOT taken CNIT 131. This can be a very frustrating problem for students and will usually cause them to fall behind in the class.)
5. Unix Permissions:
As previously mentioned, SSH programs automatically give web files unix read permission after they have been uploaded to the hills server. With some FTP programs you must give your web files unix read permission. You can also give a web file unix read permission via your SSH connection program. After connecting to the hills server with SSH, at the $ prompt:
cd public_html
chmod og+r filename
(where filename is the name of your web file)
A way to give ALL of your web files unix read permission is to go to the public_html directory,
and at the $ prompt, enter
wwwsetup
Note that "wwwsetup" can be run once to setup the public_html directory, and also anytime you upload new files to make sure their permissions are correct for the hills web server.
6. Final Reminder:
Your homepage must be named index.html. Since the hills server operates within a Unix environment, public_html must be given unix execute permission and ALL web files, including index.html and image files, must be given unix read permissions.