Skip to main content

Windows SSH

# Windows SSH with X Forwarding

This guide explains how to connect to the GRIT HPC system from Windows using SSH with X11 forwarding so graphical applications can display on your local machine.

---

## 1. Install an X Server (Xming)

Install **Xming** using `winget`.

Open **Command Prompt** or **PowerShell** and run:

winget install Xming

After installation, start Xming from the Start Menu.


2. Configure the DISPLAY Variable

Set the DISPLAY environment variable so remote X11 applications know where to send their output.

Run:

setx DISPLAY localhost:0

Close and reopen your terminal after running this command so the environment variable takes effect.


3. Connect to the HPC System

Connect with X11 forwarding enabled:

ssh -Y [netid]@[hostname].grit.ucsb.edu

The -Y flag enables trusted X11 forwarding, allowing graphical applications to display on your Windows desktop.


4. Test X Forwarding

After connecting, test with a simple X application:

xclock