If you ever worked with cloud and configured different subnet, there will be public and private subnet, both having a different number of servers, for the public or even private have you also wonder how to access the environment without associate the VM to Public IP, in this post I will show you how.
For the figure shows one of the simple example of that, In this post you will learn how to connect to an instance that is hosted in a private subnet

The first thing you need, install Pageant

After that, open the software and add the public key to this software , enter the password

Once you add the key, it will be appear inside the program you can close it

Now you can use putty and configure the software like the follwing, You are now connected to the instance in public subnet through agent forwarding.


From the public subnet you can simply SSH to to private subnet easily.
Cheers
Osama