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!
In this chapter we will learn how to use putty gen to create public and private key pairs on windows.
Goto putty download page, this time we will download tool called, puttygen!
When you click on puttygen link, download should begin, when download is complete then double click on downloaded file, this will launch puttygen.
Click on the generate button.
You will now have to move your mouse inside the area, where it says, "No Key".
Move your mouse fast. When progress bar hits 100 percent, putty gen will start creating your keys.
Once keys has been generated, Save public button, and Save private button will become active.
Providing a password for your private key means, it become rather very hard for any hacker to gain access to your remote server, even if he gets hold of your private key.
Let's enter a password for our private key, please note! you must remember this password.
Copy the public key from the public key field.
Save a private key to a folder that you will remember.
Let's launch a putty session to our remote server.
We will now add the copied public key content to authorized underscore keys file.
Add copied contents to authorized underscore keys file, authorized underscore keys file if not there, will be created with the command shown.
authorized underscore keys file path is /, user home folder, / dot SSH.
paste your public key in authorized underscore keys file. Please remember, this public key should start with SSH dash RSA.
Save this file and exit.
Exit the putty session.
Let's now make use of our private key to login to our remote server.
Launch Putty again.
Load our saved session. From left hand side navigation, goto connection, SSH, and then Auth. Click on Browse button and locate the private key.
Then click Open button.
Type in the username and press enter.
You will now be asked for the pass phrase for the private key, enter it and press enter.
We are in!
In next video we will learn to generate private public key pair on Linux.