-
Notifications
You must be signed in to change notification settings - Fork 0
SSH Config
Sean Low edited this page Jun 12, 2021
·
1 revision
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.
- SOC Unix Account
- SSH client
- 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 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
- Once done, save and quit.
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.