Set up a reverse SSH tunnel from Windows

SSH (secure shell) tunneling is the process of forwarding selected ports through an authenticated and encrypted tunnel. In many cases, SSH tunneling is used to connect to a remote database that is secured behind a restrictive firewall or other network restrictions.This article walks you through the process of creating an SSH tunnel on Windows using PuTTy.

  1. Add a public key in your user settings. The public key will be propogated to all Xplenty servers in up to 30 minutes.

  2. Create a “Tunnel connection” in Xplenty with and retrieve Xplenty’s tunnel server (Xplenty server) and connection port.

    create_tunnel

  1. Download PuTTy.

  2. Start a new PuTTy session and set the Hostname to Xplenty server with port 50683. For example:

    putty-1

  1. Connection->Data, enter the tunnel username: sshtunnel
    putty-2

  2. Connection->SSH, check “Don’t start a shell or command at all”
    putty-3

  3. Connection->SSH->Auth, browse for your PPK private key that matches the public key you added in Xplenty.
    putty-4

  4. Connection->SSH->Auth->TTY, check “Don’t allocate a pseudo terminal”.
    putty-5

  5. Connection->SSH->Tunnel: Specify the source port (the connection port assigned to your connection, 53359 in this example), Specify the destination database’s host and port in the destination as “hostname:port”, select the “Remote” option and click “Add”.
    putty-6

  6. Save the connection - Go back to Session section in sidebar, enter a description for your stored session (xplenty here) then click the save button.
    putty-7

  7. Connect - double click the Xplenty session to initiate the connection.

Feedback and Knowledge Base