Skip to content
HOME / GENERAL / RDP THROUGH SSH TUNNELING 2 years AGO

General

RDP through SSH Tunneling using PuTTY

RDP through SSH Tunneling using PuTTY

Last Updated on August 7, 2025 by Arnav Sharma

Using PuTTY to create an SSH tunnel for RDP (Remote Desktop Protocol) involves several steps. Here’s a step-by-step guide to help you set it up:

Requirements

Step-by-Step Guide

  1. Open PuTTYLaunch PuTTY from your start menu or desktop.
  2. Configure SSH Connection
    • Session Settings:
      • In the Host Name (or IP address) field, enter the SSH server’s address.
      • Ensure the Port is set to 22.
      • Under Connection type, select SSH.
  3. Set Up SSH Tunnel
    • In the left-hand category menu, navigate to Connection > SSH > Tunnels.
    • Under Source port, enter a local port number (e.g., 13389). This can be any unused port number on your local machine, essential for configuring SSH tunnel for remote desktop.
    • In the Destination field, enter the destination address and port in the format destination_ip:remote_port(e.g., 127.0.0.1:3389 if you are tunneling to a local machine’s RDP service).
    • Select Local and Auto.
    • Click Add. The configuration should now appear in the Forwarded ports list.
  4. Save the Session (Optional)
    • Go back to the Session category.
    • In the Saved Sessions field, enter a name for this connection configuration.
    • Click Save. This way, you can easily reuse this configuration later.
  5. Connect to the SSH Server
    • Click Open at the bottom of the PuTTY window.
    • If this is your first time connecting to this server, you may see a security alert. Confirm that you trust the server and continue.
    • Log in with your SSH username and password when prompted.
  6. Configure RDP Connection
    • Open the Remote Desktop Connection client (mstsc.exe).
    • In the Computer field, enter localhost:[local_port] (e.g., localhost:13389).
  7. Connect via RDP
    • Click Connect.
    • You should now be connected to the remote desktop through the SSH tunnel.

Troubleshooting

  • Connection Refused: Ensure the port you chose for the local tunnel (Source port) is not being used by another application.
  • Authentication Issues: Verify your SSH credentials and ensure you have the correct permissions on the SSH server.
  • Firewall Issues: Ensure that your firewall settings allow the SSH and RDP connections.

Arnav Sharma
Arnav Sharma Microsoft MVPMCT
Microsoft Certified Trainer · Cloud · Cybersecurity · AI

I help organisations secure their cloud infrastructure and stay ahead of evolving cyber threats. Microsoft MVP and Certified Trainer, author of Mastering Azure Security, and founder of arnav.au — a platform for practical Cloud, Cybersecurity, DevOps and AI content.

Frequently Asked Questions

KEEP READING

Leave a reply

Your email address will not be published. Required fields are marked *

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