Skip to main content
Computer Science Instructional Facility (CSIF)
UC Davis Logo
UC Davis Logo

Computer Science Instructional Facility (CSIF)

Computer Science
  • UC Davis

Main navigation (extended config)

  • Home
  • Using the CSIF
    • Accessing the CSIF Computers (remotely)
    • Accounts and Passwords
      • Instructional Accounts in the CSIF
      • Who has Access to the CSIF
    • Computers Use
      • File Storage
      • How do I setup and use Handin and rcvhandin?
      • How to run jupyter-lab in the CSIF
      • Learning Bash
      • Requesting Software to be Installed in the CSIF
      • rclone for Backups
      • Setting Up SSH Keys For Single Sign-On
      • SSH
      • Using the Ubuntu Software Repository
  • FAQ
  • Support
  • Lost and Found
  • About

Getting Started With SSH

 

Please see: Accessing the CSIF Computers (remotely) to login to the appropriate VPN before using SSH to access the CSIF.

Overview

Secure Shell (SSH) is a cryptographic network protocol for operating network services securely over an unsecured network. It is used in the CSIF for remote command line login, remote command execution, and for securing other network services. This documentation will take you through the steps on how to SSH into one of the CSIF’s machines.

You should use your UC Davis LoginID (your login username) when logging into the CSIF. This can be different from the first part of your email address. You can check the status of your account if needed.

 

UNIX (Linux/Mac OS)

 

  1. If you are using some sort of UNIX environment, the steps are simple.
  2. Launch a terminal
  3. Choose one of our machines and use the following command to connect to the computer:

$ ssh LoginID@pcXX.cs.ucdavis.edu

 

Remember to replace USERNAME with your UC Davis kerberos username and pcXX with one of our machines (pc1 - pc60).

 

  1. If you wish to set up SSH keys for easier login, you can follow the instructions here:
    COMING SOON

Windows

If you are using a Windows machine, things are a bit more complicated. You have two main choices. You can either setup a Terminal emulator such as PuTTY or MobaXTerm or you can setup a linux environment using  Windows Subsystem for Linux (WSL).

Terminal Emulator

One way to ssh is to use a Terminal Emulator like PuTTY or MobaXTerm. The setup instructions below are specific to PuTTY, but the process for MobaXTerm is fairly similar. It is just a different User Interface.

  1. Download and install PuTTY from its official site here: https://www.putty.org/
  2. Once installed, launch PuTTY
  3. Under the Session Category, Enter the pc you wish to connect to in the “Host Name” box at the top.
    • For the CSIF machines this should be in the format pcXX.cs.ucdavis.edu with pcXX being the machine you wish to connect to (pc1 - pc60), ie pc13.cs.ucdavis.edu.
  4. Under “Connection type:” click “SSH.
  5. Click Open to start the session and connect to the CSIF
  6. Enter your LoginID, which is your campus UID.
  7. Enter your campus password

WSL - 

Windows Subsystem for Linux (WSL) is a compatibility layer for running Linux binary executables (in Executable and Linkable Format) natively on Windows 10 and Windows Server 2019. In May 2019, WSL 2 was announced, introducing important changes such as a real Linux kernel, through a subset of Hyper-V features.

To enable WSL please follow these steps. You must have an administrator account to do this.

Warning: this will cause your computer to reboot. Please save all your work before beginning.

  1. Press the key combination Windows key + S. This should open up a search bar
  2. In the search bar type in Control Panel
  3. Click on “Programs - Uninstall a program“ in the lower left corner
  4. Under “Programs and Features”, Click on Turn Windows features on or off in the left sidebar
  5. In the window that pops up, scroll down and check Windows Subsystem for Linux.
  6. Press ok to apply the changes
  7. Press the Restart Now button to restart your machine
  8. Open up the Microsoft Store, search for Linux, and click the Show all link next to the apps section
  9. Install your favorite distro. If you are a beginner, we recommend Ubuntu as that is what the CSIF uses
    1. If you choose to use Ubuntu, just install the one without the version numbers
  10. Once installed launch the app and wait a few minutes for it to initialize the distro
  11. After a few minutes it will ask you for a username. We recommend setting your username to be the same as your UC Davis Kerberos LoginID.
    1. If the application does not ask you for a username after a few minutes, resize the window. Sometimes it gets stuck and resizing will force it to refresh
    2. If it takes longer than 15 minutes, something went wrong. Close the app, uninstall it, and reinstall it to try again
  12. It will then ask you for a password. This can be anything you want.

You should now have a linux terminal environment. To SSH click on the distro you installed and go back up to the UNIX section and follow those instructions

UC Davis footer logo

University of California, Davis, One Shields Avenue, Davis, CA 95616 | 530-752-1011

  • Questions or comments?
  • Privacy & Accessibility
  • Principles of Community
  • University of California
  • Sitemap
  • Last update: January 10, 2024

Copyright © The Regents of the University of California, Davis campus. All rights reserved.

This site is officially grown in SiteFarm.