Publishing web pages to the Hills Server at City College

Students in CNIT 133 will upload (also referred to as publish or FTP) the Web pages they create as homework assignments to the hills server at CCSF.

HP UNIX Login username
Every registered student in CNIT 133 will be automatically have an account created from them on the Hills Server.

  • If you are a continuing student, your user name and password will carry over from the previous semester.
  • If you are a new student, when you register for CNIT 133, an account will be created for you automatically, and is usually available within 24-48 hours.

The HP-UNIX server is hills.ccsf.edu. Every CNIT 133 student has an account on Hills.

With this account you will:

  • be able receive and send mail.
  • have an e-mail address with the format of yourlogin@ccsf.edu,
    where yourlogin is described below.
  • be able to create and maintain your own website at http://hills.ccsf.edu/~yourlogin
Your login is the first letter of your first name, then the first 5 letters of your last name, and then a 2-digit number. Usually the number is 01. For example, if your name is Orlando Bloom, your HP-UNIX User ID would be obloom01.
  • Do not use spaces or UPPERCASE letters in a UNIX user name or password.
  • Use lowercase letters and numbers only.

Orlando Bloom

Initial Password
Your initial password is your birthdate, using 3 letters for the month, 2 digits for the day, and 2 digits for the year. If you were born on June 14, 1978, your initial password is jun1478. If you were born near the start of a month, use a 0 as the first digit of the date, like this: if you were born on August 4, 1967, you initial password is aug0467.

If you login directly at the command line, you get this message. We will use “Quick Connect” and change our passwords that way. This is for your information, or if you connect at home by other means (such as on a Mac) The first time you connect successfully, you will have the following result: WARNING: Your password has expired. You must change your password now and login again! Changing password for wchang01 Old password: At the prompt for your Old Password: Enter again your birthdate. Then you will be prompted for your New Password.

New Password
Your New Password is a secret word you make up. It must have at least 6 characters, and at least one of those characters must be a number. For example, fish78 run4fun 3dozen are all good passwords.

2. Connect to the Internet.
You will need an Internet Service Provider, such as AT&T or Comcast. City College is not an ISP.

3. Connect to the hills Server
How you connect depends on what machine you are using.

From any CCSF campus lab: Use SSH Secure Shell Client to access your account, as explained below. SSH Secure Shell Client is already installed on the CCSF machines in the ICL-1 (Batmale 301) If you using a lab machine and you cannot find SSH Secure Shell Client on it, ask the faculty monitor to help you. Do not install software on campus lab machines!

From your home PC using an ISP: First install SSH Secure Client as explained in the Installing SSH Secure Shell Client on Your Home Machine handout. Then use SSH Secure Shell Client to access your account.

3. Access your hills account:
Windows users can download SSH Secure Shell. Right now it is the 9th icon from the bottom and is called sshSecureShellClient-(series of numbers).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 a freeware Mac SSH program. 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.

4. After accessing your hills account, you need to set up your permanent password by following this Tutorial.

5. 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. 1. Connect to your hills account. 2. At the bash-3.00$ 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):

1. 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. Another FTP program that I have found useful and easy to use is AceFTP, which can be downloaded free at http://www.download.com/AceFTP/3000-2160_4-10073376.html. In the past, many users used WS_FTP LE as their FTP program. If using these programs, you must remember to give files unix permissions. Another Windows program that can be used for FTP is WinSCP. It's open source and was last updated on 6/19/2006 (version 3.8.2). But 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.

2. 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: mbeard01) http://hills.ccsf.edu/~mbeard01.

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.

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 or who have taken CNIT 135a a few years ago. 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 other FTP programs like WS_FTP LE and AceFTP, 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 bash-2.04$ 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 - at the bash-2.04$ prompt to enter setup.

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.