For this lesson you’ll need 3 VM’s.
- You’ll need one VMWare Ubuntu machine


We are going to set up a network topology that looks like this:

Your EC2 Linux Machine has a .ppk key file that is used instead of a password. The first step is to upload that .ppk file to the VMWare Ubuntu Machine. There are lots of options here, but Filezilla is a good one.
- Make sure you have run apt-install ssh on your VMWare Ubuntu Machine First.


Upload the correct .ppk to your Ubuntu machine

We’ll need to convert this TunnelKey.ppk to .pem format in order to use it with the ssh command on Linux. Here are the commands:
sudo su
apt install putty-tools
puttygen TunnelKey.ppk -O private-openssh -o TunnelKey.pem
chown student:student TunnelKey.pem
chmod 600 TunnelKey.pem
exit

Now we should have a file in our student home directory called TunnelKey.pem with 600 permissions so only the student user can read this file or write to it.
ls -alh
