5 steps to setup SSH PROXY VIA WITH PUTTY

Depending on your setup and where you are deploying your solution, you may have to jump via multiple servers before you can get access to your internal server. This quick guide will help you understand how you can leverage PUTTY to Proxy via multiple SSH hosts.

Here is the example: let say that you are on your house or outside your cloud provider and you need to access the private SSH server in the image. That server has an IP address that is private so it can't be access from the internet. And there is only one server available from the internet. You can use that server as a SSH Proxy server so you can access the internal one via your SSH proxy server.

Here is what you need:

  1. Install Putty suite completely not only the putty.exe
  2. Have a Public Key configure on your Servers and have the Keys available.

5 Steps to configure SSH Proxy with Putty

  1. Open Putty and create a new connection. Type the IP address or DNS Name of your Private SSH Server. On our Lab that will be any IP address or Private DNS. Type a name to save the session later. Do not save it yet.

  2. Click the Connection  Data. Type the name in the Auto-login username field.

  3. Click Connection Proxy. Type the IP Address or DNS server that is available externally or in the internet. Click Local for the Proxy Type and change the port to 22. Type your username that will be use to connect to the remote server. In the Telnet command or local proxy command type: plink %user@%proxyhost -nc %host:%port

  4. Click Connection à SSH àAuth. Click Allow agent forwarding and then put your public key.

  5. Go back up to the Session screen and click Save. Then Open.

That's it. You are now connected to your Private IP server via a public SSH Server.

Let me know how you use this tutorial.

Subscribe For Latest Updates

Sign up for best of digital marketing, livestream and technology opinions on what matters to you.

Invalid email address
We promise not to spam you. You can unsubscribe at any time.

2 thoughts on “5 steps to setup SSH PROXY VIA WITH PUTTY”

  1. Thanks for short, clear, diagrammed instructions.

    You write put in the public key (under Auth) but the puTTY dialog box itself says private.

    Reply
  2. Good post, but incomplete
    plink %user@%proxyhost -P %proxyport -nc %host:%port
    would be the correct proxy command (if SSHD is not listening on port 22)

    Reply

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: