Creating Your Own Website at Pitt

Introduction

All Pitt students, faculty, and staff can publish a personal website from their own public folder on the Andrew File System (AFS). AFS is a network file system that stores your files on University servers so you can reach them from any computer, on or off campus. You create your webpages in HTML, upload them to your AFS space with a secure file transfer (SFTP) app, and anyone can then view your site at https://sites.pitt.edu/~username.

Note: This article covers personal websites only. Website hosting for departments is available through the Enterprise Web Hosting service (opens in a new tab) provided by Pitt Digital.

Jump to instructions for your computer:

Information

Before You Begin

Important: Name your main webpage index.html or index.htm so that others are able to view it.

Every method below uses the same connection settings:

SFTP connection settings for your AFS space
Setting Value
Host name linux-ts.it.pitt.edu
Port 22
Protocol SFTP
Username Your University Computing Account username
Password Your University Computing Account password

Your AFS space already contains a folder named public. In each set of instructions, you will create a folder named html inside it. That html folder holds your website.

Windows: Using WinSCP

WinSCP is available through the Pitt Software Download Service (opens in a new tab). Other SFTP apps, such as FileZilla, can also be used.

Install WinSCP

  1. Go to the Pitt Software Download Service at software.pitt.edu and download WinSCP.
  2. Open the downloaded installer. If Windows asks whether to allow the app to make changes to your device, select Yes.
  3. Accept the license agreement.
  4. When asked for a setup type, select Typical installation.
  5. When asked for initial user settings, select Commander. This interface shows the files on your computer and the files in your AFS space side by side, which these instructions use.
  6. Select Install, then select Finish when the installation is complete.

To see pictures of each installation screen, visit the WinSCP installation guide (opens in a new tab) on the WinSCP website. Your version may look slightly different.

Connect and upload your website

  1. Open WinSCP from the desktop shortcut or the Start menu. The Login window opens.
  2. Set File protocol to SFTP.
  3. In Host name, enter linux-ts.it.pitt.edu, and confirm that Port number is 22.
  4. Enter your University Computing Account username and password.
  5. Select Save. Enter a name for your saved session (for example, My AFS Space), then select OK.
  6. Select your saved session, then select Login. Next time, you only need to select your saved session and select Login.
  7. The first time you connect, a warning asks whether to continue connecting to an unknown server and add its host key to a cache. Select Accept (in older versions of WinSCP, this button is labeled Yes). This warning will not appear again.
  8. If any other server messages appear, select OK.
  9. WinSCP now shows two file panels. The panel on the left shows the files on your computer. The panel on the right shows your AFS space, including the public folder.
  10. In your AFS panel, double-click the public folder.
  11. Open the Files menu, select New, then select Directory (or press F7).
  12. For the new folder name, enter html, then select OK.
  13. Double-click the html folder to open it.
  14. In the panel for your computer, open the folder that contains your website files.
  15. Select the files you want to upload. Drag them into the html folder panel, or press F5 and select OK to copy them.
  16. When you are finished, close WinSCP to disconnect.

Mac: Using Fetch

Fetch is available through the Pitt Software Download Service (opens in a new tab).

Install Fetch

  1. Go to the Pitt Software Download Service at software.pitt.edu and download Fetch.
  2. Open the downloaded file and follow the instructions to install Fetch in your Applications folder.

Connect and upload your website

  1. Open your Applications folder and double-click Fetch. The New Connection window opens.
  2. In the Hostname field, enter linux-ts.it.pitt.edu.
  3. In the Username field, enter your University Computing Account username.
  4. Set the Connect using menu to SFTP.
  5. In the Password field, enter your University Computing Account password.
  6. Select Connect. The files in your AFS space appear in the Fetch window.
  7. Double-click the public folder.
  8. Select the New Folder button in the toolbar. In the Enter a name for the new folder field, enter html, then select OK.
  9. Double-click the html folder to open it.
  10. In a Finder window, select your website files and drag them into the Fetch window. Release the mouse button when a plus sign (+) appears next to the pointer.
  11. When you are finished, close the Fetch window to disconnect.

For more information, visit Fetch Help (opens in a new tab) on the Fetch Softworks website.

Linux: Using FileZilla

FileZilla is a free, open-source SFTP app available in the software repositories of most Linux distributions.

Install FileZilla

  • Open your distribution's software center app, search for FileZilla, and install it.
  • Or, install it from a terminal. On Ubuntu or Debian, run sudo apt install filezilla. On Fedora, run sudo dnf install filezilla.

Connect and upload your website

  1. Open FileZilla.
  2. In the Quickconnect bar near the top of the window, enter the following:
    • Host: sftp://linux-ts.it.pitt.edu
    • Username: your University Computing Account username
    • Password: your University Computing Account password
    • Port: 22
  3. Select Quickconnect.
  4. If FileZilla asks whether to remember passwords, choose the option you prefer. On a shared computer, select Do not save passwords.
  5. The first time you connect, an Unknown host key message appears. Check Always trust this host, add this key to the cache, then select OK.
  6. In the Remote site panel, double-click the public folder.
  7. Right-click in the Remote site file list and select Create directory. Replace New directory at the end of the path with html, then select OK.
  8. Double-click the html folder to open it.
  9. In the Local site panel, open the folder that contains your website files.
  10. Select your files, right-click them, and select Upload. You can also drag them into the Remote site file list.
  11. When you are finished, open the Server menu and select Disconnect, then close FileZilla.

Built-in alternatives (no extra software)

Most Linux systems can also connect to AFS without installing anything:

  • File manager: In GNOME Files or KDE Dolphin, press Ctrl + L, enter sftp://username@linux-ts.it.pitt.edu (replace username with your own), and press Enter. Enter your password when prompted. Then open the public folder, create a folder named html, and copy your website files into it.
  • Terminal: Run the following commands, one at a time:
    1. sftp username@linux-ts.it.pitt.edu (replace username with your own, then enter your password when prompted)
    2. cd public
    3. mkdir html (only needed the first time)
    4. cd html
    5. put index.html (repeat for each file you want to upload)
    6. exit

Viewing Your Website

After you upload your files, anyone can view your website at https://sites.pitt.edu/~username, where username is your University Computing Account username. For example, if your username is jdoe, your website is at https://sites.pitt.edu/~jdoe.

Note: Everything you place in your public/html folder, including any folders you create inside it, can be viewed by anyone on the web.

If you need help, contact the IT Help Desk (opens in a new tab).

Print Article

Related Articles (4)

The University offers a distributed network file storage system known as the Andrew File System (AFS). You can store files and documents on remote AFS servers and access those files as easily as if they were stored locally on your computer.
How to increase your Linux timesharing quota
Many schools at the University of Pittsburgh use the Linux Timesharing Service for research, classroom work, and teaching. It can be used to run specialty software applications for engineering and mathematics that require a Linux environment.
This page explains how to review your AFS directories to determine if others have access to them. It also covers how to restrict access to those directories that you would like to keep private.

Related Services / Offerings (2)

INTEGRATION CONSULTING AND DEVELOPMENT SERVICES Pitt IT provides various types of application development for the University community.
WEB HOSTING Web hosting options tailored to meet the needs of departments, staff, faculty, and students