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.
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
- Go to the Pitt Software Download Service at
software.pitt.edu and download WinSCP.
- Open the downloaded installer. If Windows asks whether to allow the app to make changes to your device, select Yes.
- Accept the license agreement.
- When asked for a setup type, select Typical installation.
- 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.
- 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
- Open WinSCP from the desktop shortcut or the Start menu. The Login window opens.
- Set File protocol to SFTP.
- In Host name, enter
linux-ts.it.pitt.edu, and confirm that Port number is 22.
- Enter your University Computing Account username and password.
- Select Save. Enter a name for your saved session (for example, My AFS Space), then select OK.
- Select your saved session, then select Login. Next time, you only need to select your saved session and select Login.
- 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.
- If any other server messages appear, select OK.
- 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.
- In your AFS panel, double-click the
public folder.
- Open the Files menu, select New, then select Directory (or press F7).
- For the new folder name, enter
html, then select OK.
- Double-click the
html folder to open it.
- In the panel for your computer, open the folder that contains your website files.
- Select the files you want to upload. Drag them into the
html folder panel, or press F5 and select OK to copy them.
- 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
- Go to the Pitt Software Download Service at
software.pitt.edu and download Fetch.
- Open the downloaded file and follow the instructions to install Fetch in your Applications folder.
Connect and upload your website
- Open your Applications folder and double-click Fetch. The New Connection window opens.
- In the Hostname field, enter
linux-ts.it.pitt.edu.
- In the Username field, enter your University Computing Account username.
- Set the Connect using menu to SFTP.
- In the Password field, enter your University Computing Account password.
- Select Connect. The files in your AFS space appear in the Fetch window.
- Double-click the
public folder.
- Select the New Folder button in the toolbar. In the Enter a name for the new folder field, enter
html, then select OK.
- Double-click the
html folder to open it.
- 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.
- 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
- Open FileZilla.
- 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
- Select Quickconnect.
- If FileZilla asks whether to remember passwords, choose the option you prefer. On a shared computer, select Do not save passwords.
- 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.
- In the Remote site panel, double-click the
public folder.
- 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.
- Double-click the
html folder to open it.
- In the Local site panel, open the folder that contains your website files.
- Select your files, right-click them, and select Upload. You can also drag them into the Remote site file list.
- 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:
sftp username@linux-ts.it.pitt.edu (replace username with your own, then enter your password when prompted)
cd public
mkdir html (only needed the first time)
cd html
put index.html (repeat for each file you want to upload)
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).