CLEAR SSH Access Guide

Step-by-step instructions for connecting to CLEAR from Windows, macOS, and Linux, including SSH key setup and troubleshooting.

Introduction

This guide provides instructions for connecting to the CLEAR computing environment from Windows, macOS, and Linux using SSH. It covers common connection methods, including OpenSSH, PuTTY, SSH key authentication, secure file transfers with SCP, X11 forwarding, and troubleshooting common SSH connection issues.

Whether you are connecting to CLEAR for coursework, research, software development, or system administration, this guide will help you establish a secure connection and access resources available on the CLEAR systems.

SSH in the CLEAR Environment

SSH provides secure remote access to CLEAR systems for activities such as:

  • Coursework and course support
  • Faculty research computing
  • Software development
  • Running engineering applications
  • Database administration
  • File management
  • System administration

CLEAR: Start a Terminal and Connect to CLEAR from Windows

Host Address

The primary host address used to connect to CLEAR is:

ssh.clear.rice.edu

From a Windows terminal, Command Prompt, or PowerShell session with OpenSSH installed, connect using:

ssh <NetID>@ssh.clear.rice.edu

Replace <NetID> with your Rice NetID. Complete the password and Duo authentication prompts as required.

CLEAR: Connect from a Mac

Important Notes

  • X11 forwarding is not available through the ssh-staff or ssh-student gateway servers. For X11 forwarding, connect directly to the destination Rice server when network access permits.
  • When entering your password in a terminal, no characters will appear on the screen. This is normal. Type your password carefully and press Enter.
  • When required, complete the Duo authentication prompt to finish signing in.
  • For off-campus access, you may need to connect to the Rice VPN or use the appropriate Rice SSH gateway before connecting to an internal Rice server.

Connect from the macOS Terminal

  1. Open the Terminal application:
    Finder > Applications > Utilities > Terminal
  2. Connect using:
    ssh <NetID>@ssh.clear.rice.edu
  3. Replace <NetID> with your Rice NetID.
  4. Enter your NetID password when prompted and complete Duo authentication as required.

Connect Using X11 Forwarding

To request X11 forwarding, use one of the following commands:

ssh -X <NetID>@ssh.clear.rice.edu

For trusted X11 forwarding:

ssh -Y <NetID>@ssh.clear.rice.edu

An X11 server must be installed and running on your Mac before graphical applications can be displayed locally.

For more information and support, contact the TS&S Service Desk.

CLEAR: OpenSSH for Windows 10/11

Installation

Windows 10 and Windows 11 include an optional OpenSSH Client that can be used to connect to CLEAR.

  1. Open Settings and locate Optional Features.
  2. Check whether OpenSSH Client is installed.
  3. If it is not installed, add the OpenSSH Client optional feature.

Note: The scp command is installed as part of the OpenSSH Client.

Using SSH

Open Command Prompt, PowerShell, or Windows Terminal and enter:

ssh <NetID>@ssh.clear.rice.edu

Replace <NetID> with your Rice NetID.

Note: When you type your password, nothing will appear on the screen. This is normal. Type your password carefully, press Enter, and complete Duo authentication as required.

Using SCP

SCP can securely copy files between your local computer and CLEAR. The general syntax is:

scp <source> <destination>

Copy a File to CLEAR

For example, to copy a local file named test.txt to your CLEAR home directory:

scp ./test.txt <NetID>@ssh.clear.rice.edu:~/

To copy the file and give it a different name:

scp ./test.txt <NetID>@ssh.clear.rice.edu:~/<new_name>

To copy the file into an existing directory in your CLEAR home directory:

scp ./test.txt <NetID>@ssh.clear.rice.edu:~/<dir>/<new_name>

Retrieve a File from CLEAR

To copy a file from CLEAR to your current local directory:

scp <NetID>@ssh.clear.rice.edu:~/<dir>/<file> .

Authentication requirements may vary depending on your configured access method.

CLEAR: Access with PuTTY

This section is for Windows users who prefer to connect to CLEAR using PuTTY.

Configure a PuTTY Session

After installing and starting PuTTY, you will see a configuration window similar to the following:

PuTTY session configuration

  1. Select Session in the left-hand menu.
  2. In Host Name (or IP address), enter <NetID>@ssh.clear.rice.edu.
  3. In Saved Sessions, enter a descriptive name such as ssh clear.
  4. Click Save to save the configuration for future use.

Connect to CLEAR

Open SSH session in PuTTY

  1. Select Session.
  2. Select your saved CLEAR session.
  3. Click Load.
  4. Click Open.
  5. Enter your Rice NetID and NetID password when prompted.
  6. Complete Duo authentication as required.

After authentication is complete, you will be presented with a terminal session on the CLEAR system.

CLEAR: SSH Host Key Connection Issue

You may occasionally receive the following warning when connecting to a system with SSH:

WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!

What Does This Mean?

SSH stores the host keys of systems you have previously connected to in a known_hosts file. If the host key presented by a server changes, SSH displays a warning because the change could indicate a security problem.

A host key can also legitimately change after a server is rebuilt, replaced, upgraded, or has its SSH host keys regenerated.

Important: Do not ignore a host-key warning if you are unsure why the key changed. Verify the change with the appropriate system administrator or OIT support before removing the stored key.

Remove an Outdated Host Key

After confirming that the host-key change is legitimate, OpenSSH users can remove the old key with:

ssh-keygen -R ssh.clear.rice.edu

Then reconnect:

ssh <NetID>@ssh.clear.rice.edu

Review the new host-key prompt before accepting the new key.

Manual known_hosts Locations

If manual editing is necessary, the OpenSSH known_hosts file is typically located at:

macOS and Linux

~/.ssh/known_hosts

Windows OpenSSH

C:\Users\<local_account>\.ssh\known_hosts

Remove only the entry associated with the affected host after confirming that the host-key change is legitimate.

Creating and Using SSH Public/Private Keys on CLEAR

SSH public/private key authentication can be used as part of your CLEAR login workflow.

Advantages

  • Convenient for repeated SSH connections
  • Provides strong authentication when properly configured and managed

Considerations

  • You must securely manage your private key.
  • Your public key must be installed on the remote system.
  • Correct permissions must be configured for the .ssh directory and authorized_keys file.
  • A compromised private key may allow unauthorized access to systems where the corresponding public key is authorized.

Important: Never share your private key. Only your public key should be copied to remote systems.

When generating a new SSH key, use the Ed25519 algorithm when supported.

Generate an SSH Key with OpenSSH

On systems with OpenSSH installed, you can generate an Ed25519 key pair with:

ssh-keygen -t ed25519

Follow the prompts to select the key location and configure a passphrase.

Additional Platform Resources

Windows with PuTTY

Using SSH Keys with PuTTY

Windows with OpenSSH

Getting started with OpenSSH

macOS

How to use ssh-keygen to generate an SSH key on Mac

Linux

How to set up SSH keys on a Linux or Unix system

VS Code

VS Code SSH Tips

Install Your Public Key on CLEAR

Your public key should be added to the ~/.ssh/authorized_keys file in your CLEAR home directory.

On the CLEAR system:

mkdir -p ~/.ssh
chmod 700 ~/.ssh

Add the contents of your public key to:

~/.ssh/authorized_keys

Then set the appropriate permissions:

chmod 600 ~/.ssh/authorized_keys

Important: Never copy your private key to CLEAR or share it with another person.

CLEAR: PuTTY with X11 Forwarding

This section is for Windows users who need to run graphical applications on CLEAR using PuTTY with X11 forwarding.

You must have an X11 server installed and running on your Windows computer before starting an X11-forwarded SSH session.

Install PuTTY using the instructions here: Get and install PuTTY.

Step 1: Configure the SSH Session

PuTTY session configuration

  1. Select Session.
  2. In Host Name (or IP address), enter <NetID>@ssh.clear.rice.edu.
  3. Enter a descriptive name under Saved Sessions, such as ssh clear x11.

Step 2: Enable X11 Forwarding

Enable X11 forwarding in PuTTY

  1. In the left-hand menu, select Connection > SSH > X11.
  2. Check Enable X11 forwarding.
  3. Return to Session.
  4. Click Save to save the updated configuration.

Step 3: Connect

Open SSH session in PuTTY

  1. Make sure your local X11 server is running.
  2. Select your saved PuTTY session.
  3. Click Load, then Open.
  4. Enter your Rice NetID and NetID password when prompted.
  5. Complete Duo authentication as required.

After connecting, you can test X11 forwarding by launching a simple graphical application available on the CLEAR system.

For additional assistance with CLEAR access, contact the TS&S Service Desk.



Keywords:
CLEAR Linux ssh, CLEAR, terminal, organization, classes, Linux, MAC, OSX, ssh-staff, VPN, ssh, X11, 22, clear, ssh, openssh, duo, windows, scp, CLEAR, Linux, cluster, terminal client, ssh, identification, changed, nasty, eavesdropping, ECDSA, host key, CLEAR, Linux, cluster, terminal client, vscode, vscode-server, cline, intellij, ssh, key, authorized_keys, certificate, clear, ssh, putty, terminal, forwarding 
Doc ID:
161719
Owned by:
Amod U. in Rice U
Created:
2026-06-03
Updated:
2026-08-11
Sites:
Rice University