SSH Config - nus-cs2030/2122-s1 GitHub Wiki
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
- SOC Unix Account
- SSH client
Set-up
- In your terminal, type
vim ~/.ssh/config
to create the config file. - 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
- 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.