For this lesson you’ll need 3 VM’s.

Untitled

Untitled

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

Untitled

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.

Untitled

Untitled

Upload the correct .ppk to your Ubuntu machine

Untitled

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

Untitled

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

Untitled