Getting Started with SSH
Chapters
In this short course we will explore what SSH is. This course is split into multiple parts such as
- Introduction to SSH
- Generating a Key Pair to make connections
- Accessing remote servers using SSH client
- Various scenarios SSH can be used in
- Installing SSH server
Primary objective of this course is to get you up and running with SSH.
We hope that you will enjoy this short course.
Author: Subject Coach
Added on: 4th Jan 2015
Please get in touch with your teacher or tutor in case you have a question related to this lesson
None just yet!
Let's make our system's authentication process a bit more secure.
We will block password based logins. To do that, open SSHD underscore config file which can be found under /etc/.ssh folder.
Change the setting for "PasswordAuthentication" to no.
Change setting for usePAM to no.
PAM is an abstraction layer, that exists on Linux and Unix-like operating systems, used to enable authentication between a variety of services.
Once you are done, reload SSH. Now! let's try to login to our remote server without our private key.
You will get an error reporting that this authentication method is not supported.
Let's try to login using our private key now.
Open session with our remote server with our private key.
Enter pass phrase for the key, and we are in.
In next chapter, I will show you some scenarios where SSH is handy.