Skip to content
Victoria Wong edited this page Aug 23, 2021 · 2 revisions

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 stu
	Hostname stu.comp.nus.edu.sg
	User XXXX (Your UNIX username)

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

Usage

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

ssh stu will connect you to the Stu Server. Enter your unix password to continue.

ssh cs2030plab will connect you to Stu, 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