-
Notifications
You must be signed in to change notification settings - Fork 4
SSH Config
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 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.
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.
Peer Learning
Guides
Setting Up Checkstyle
Setting Up Java
Setting Up MacVim
Setting Up Stu
Setting Up Unix For Mac
Setting Up Unix For Windows
Setting Up Vim
Setting up SSH Config
SSH Without Password
Copying Files From PE Nodes
Using tmux
CS2030 Contents
Lecture 1 SummaryLecture 2 Summary
Access Modifiers
Lecture 3 Summary (Polymorphism)
Compile Time Type VS Runtime Type
Abstraction, Encapsulation, Inheritance, and Polymorphism
SOLID Principles
Class VS Abstract Class VS Interface
Comparable VS Comparator
Generic Types T
HashMap
Raw Types with Generic
Lambda expression
PECS (Producer Extends Consumer Super)
Optional
Streams
Parallel Streams
Monad
Functors and Monads with Category Theory