SSH and SSH Tunneling Explained (demonstrated with Puttygen and Putty)
Cloud Tech
In this video i demonstrate how to use the windows based Puttygen client to generate an SSH Key, and then use it to connect to a machine by using the normal Putty client. I go on to firstly explain how SSH tunneling works, before demonstrating it using a typical scenario.
Timestamps: 0:00 SSH & SSH Tunneling Intro 0:36 Creating an SSH Key using Puttygen 2:53 Connect via Putty 4:23 SSH Tunneling Explanation 7:03 SSH Tunneling in Action
Video Transcript :
Video 1 - SSH and SSH Tunneling Introduction In this video I will demonstrate how you can generate an SSH key on windows, explain its advantages over using a password, and go on to explain and demonstrate SSH tunneling. This feature enables very secure attachments to the target machine, as they are all going over the SSH Connection, and only requires the SSH port which is port number 22 to be allowed through any firewall on the target machine.
Ok, time for the introduction, and then we will get cracking Video 2 – CloudTech Introduction Video 3 - Create an SSH Key using PuttyGen I am going to demonstrate SSH using an instance from a company called upcloud , as cloud computing and Virtual private servers is what this YouTube channel is all about. However, if you are only looking to connect two local machines via SSH, the principles described in this video are just as applicable to that scenario.
By the way don’t worry, I found SSH keys and SSH tunneling a bit difficult at first to get my head around , but it actually turned out to be quite easy.
Let me demonstrate, On screen you can see I am halfway through setting up a cloud based instance. And like all such VPS providers, I am at the point where it is asking for an SSH key.
so at this point i stop, and download putty a popular windows SSH client, importantly , from the official putty website. As I am using the normal 64 bit version of windows 10 I get the 64 bit version.
Once installed, I start the puttygen SSH key generator that is automatically included alongside putty, and generate an SSH Key.
Once the SSH Key has been generated , I cut and paste the on screen public half of the SSH key into the UpCloud website, and type a name for it , so I can recognize it in the future, You can simply think of this as being like a padlock, everyone can see it but only the person with the key is able to open it and so connect to the instance
I then return to puttygen and save the hidden private key half of the SSH Key pair. I am offered to protect this key with a passphrase., this passphrase is like a the combination on a locked box that has the private key inside it. Without the passphrase you cannot get to the key that’s needed to open the servers padlock.
When finished saving the private key, puttygen c ... https://www.youtube.com/watch?v=ioWZGAZddlE
35172946 Bytes