-
Notifications
You must be signed in to change notification settings - Fork 4
SSH Without Password
Have a password that is too long and annoying to type out every time you want to SSH or SCP into the UNIX servers? This is the solution for you!
PS you need to do it for every system you intend to set up SSH without password
- SOC Unix Account
- SSH client
Make sure you can SSH into a server by trying to connect to one of the SOC servers eg stu.comp.nus.edu.sg
cd ~/.ssh
ssh-keygen
This generates a RSA public/private key pair in the .ssh
folder
Name the file something you can recognize in this example will name it stuKey
Register the private key in your system
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/stuKey
stuKey
is the name of the key pair in this example
Copy the public key into the server
Make sure you are still in the ~/.ssh
directory
ssh-copy-id -i stuKey.pub [email protected]
Where XXXX is your UNIX username and stu.comp.nus.edu.sg
is the server you are adding the key to
You will need to enter your password one last time 🤞
Try out ssh without password
Add an SSH Config to further reduce the amount of keystrokes to enter to SSH
PragmaticLinux. (2021, May 20). Configure ssh for login without a password. PragmaticLinux. https://www.pragmaticlinux.com/2021/05/configure-ssh-for-login-without-a-password/.
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