Connect to a Remote Host using SSH and Private/Public Key Authentication

Using Linux

In the first three videos, I install and configure a SSH server in Ubuntu (Linux). I also have a Windows 7 computer running VirtualBox with another Ubuntu Linux operating system running that I use as a client. I configure the SSH server to authenticate remote users with the private key + passphrase, as opposed to normal SSH username and password authentication. I then demonstrate connecting to the SSH server from another Linux SSH client and from a Windows SSH client using the program Tera Term.

For this assignment, I recommend installing VirtualBox for Windows and then installing Ubuntu in the VirtualBox. I have tutorials on installing VirtualBox and I have tutorials on installing Ubuntu. Look in the Linux Fundamentals class. See the first three videos below…

Using Windows

In the last two videos, I found a Windows SSH solution that doesn’t require Windows Server 2008. You can install freeSSHd SSH server for Windows and then you can use PuTTY or TeraTerm as a SSH Client. For authenticating with a public/private key pair you can create keys using PuTTYgen Watch the 4th and 5th videos below for a full tutorial demonstration. To do the lab you will need: 1) freeSSHd  http://www.freesshd.com; 2) PuTTY and PuTTYgen http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html 3) TeraTerm can be used as a client also http://logmett.com/index.php?/products/teraterm.html 

Video Tutorials

Key pair SSH authentication in Ubuntu – Part 1

Key pair SSH authentication in Ubuntu – Part 2

Key pair SSH authentication using Tera Term

Key pair SSH authentication in Windows using freeSSHd, PuTTY and PuTTYgen – Part 1

Key pair SSH authentication in Windows using freeSSHd, PuTTY and PuTTYgen – Part 2

Author: Dan

Dan teaches computer networking and security classes at Central Oregon Community College.

Leave a Reply

Your email address will not be published. Required fields are marked *