Skip to content

SSH Config

Sean Low edited this page Jun 12, 2021 · 1 revision

Config for SSH Client

All credit goes to my TA, DaeKoon, for showing this to our Lab Group.

To save time/effort accessing the PE nodes, you can create a config file to store your SSH options so you don't have to type the lengthy commands each time. You'll just need to key in ssh cs2030plab to connect to the PE nodes.

Pre-requisites

  1. SOC Unix Account
  2. SSH client

Set-up

  1. In your terminal, type vim ~/.ssh/config to create the config file.
  2. Type the following lines into the config file, replacing the Xs with your account details.

Indentation is not required, but it is recommended for readability.

Host sunfire
	Hostname sunfire.comp.nus.edu.sg
	User XXXX (Your UNIX username)

Host cs2030plab
	Hostname peXXX (Your account slip Hostname)
	User plabXXXX (Your account slip UserID)
	ProxyJump sunfire
  1. Once done, save and quit.

Usage

From your terminal, type either ssh sunfire or ssh cs2030plab.

ssh sunfire will connect you to the Sunfire Server. Enter your unix password to continue.

ssh cs2030plab will connect you to Sunfire, then the PE Nodes. Enter your unix password, then your plab password.

To disconnect, type exit. DO NOT close your terminal without exiting from the remote server.

Clone this wiki locally