Windows 11: Setting Up an SSH Tunnel with SOCKS5 Proxy (127.0.0.1:9090)

Abstract: Configure a SOCKS5 proxy on port 9090 via SSH tunneling in Windows 11 using OpenSSH, PuTTY, or Bitvise.

Created: 2026-09-11 by

Establishing an SSH tunnel with a SOCKS5 proxy on Windows 11 allows you to route traffic securely through a remote server. You can achieve this using the built-in OpenSSH client, WSL, or third-party tools like PuTTY and Bitvise. This guide covers the command-line syntax, configuration file setup, and GUI options for creating a dynamic local port forwarding tunnel on port 9090.

Using the Built-in OpenSSH Client

Windows 11 includes OpenSSH client capabilities by default, though they may need to be enabled via Settings. To create a SOCKS5 proxy, you use the -D flag which specifies a dynamic port forwarding. The basic command structure is straightforward: specify the user, the remote host, and the local port. Open PowerShell or Command Prompt and run the following command:
ssh -D 127.0.0.1:9090 -N -f username@remote_host
The -D 127.0.0.1:9090 argument tells SSH to listen on localhost at port 9090. The -N flag indicates that no remote commands will be executed, which is ideal for tunneling only. The -f flag puts SSH in the background after authentication. Replace username and remote_host with your actual credentials and server address. If you are using key-based authentication, ensure your private key is accessible, as detailed in our article on using public keys for SSH into Windows.

Configuring via SSH Config File

For frequent users, editing the ~/.ssh/config file (or C:\Users\YourUser\.ssh\config) is more efficient than typing long commands repeatedly. This method centralizes your connection settings and ensures consistency across sessions. Add the following block to your config file:
Host my-tunnel
    HostName remote_host.com
    User username
    DynamicForward 127.0.0.1:9090
    IdentityFile ~/.ssh/id_rsa
    ServerAliveInterval 60
Once configured, you can initiate the tunnel simply by running ssh my-tunnel. The DynamicForward directive achieves the same result as the -D flag. Adding ServerAliveInterval helps maintain the connection if network latency is high. Note that if you encounter issues with config generation, refer to resources on Pageant failing to generate OpenSSH config for troubleshooting common permission or format errors.

Setting Up PuTTY for SOCKS Proxy

PuTTY remains a popular choice for Windows users who prefer a graphical interface. It offers granular control over tunnel parameters without memorizing command-line flags. 1. Launch PuTTY and enter the Host Name or IP address of your remote server. 2. Navigate to Connection > SSH > Tunnels. 3. Select Dynamic under the "Source port" section. 4. Enter 9090 in the source port field. 5. Click Add. You should see D9090 appear in the forwarded ports list. 6. Return to the Session category and click Save to store these settings for future use. When you connect, PuTTY establishes the SOCKS5 proxy on port 9090. Ensure that your applications are configured to use this proxy. For browser testing, Chrome can be launched with the --proxy-server="socks5://127.0.0.1:9090" flag to verify the tunnel works correctly.

Using Bitvise SSH Client

Bitvise SSH Client provides a robust GUI with advanced tunneling features, including support for multiple simultaneous tunnels. It is particularly useful for managing complex network setups. 1. Open Bitvise and enter your server details in the main login window. 2. After connecting, go to the Tunnel Manager tab. 3. Click New Tunnel and select SOCKS Proxy. 4. Set the local address to 127.0.0.1 and port to 9090. 5. Configure any authentication requirements if necessary. 6. Click Start to activate the tunnel. Bitvise also allows you to log outbound connections for auditing purposes, which complements security best practices. For more information on monitoring your SSH activity, check out our guide on logging outbound SSH connections in Windows.

WSL Integration

Windows Subsystem for Linux (WSL) users can leverage the Linux-native SSH client while maintaining access from Windows applications. The process mirrors the standard Linux approach but requires careful handling of the loopback interface. In WSL, run:
ssh -D 127.0.0.1:9090 -N username@remote_host
To make this accessible to Windows applications, you may need to configure your firewall or use a tool like netsh to redirect traffic. Alternatively, configure your Windows browser to point to 127.0.0.1:9090. Ensure that the WSL instance is running and that the SSH service within WSL is active. This setup is particularly effective for developers working in cross-platform environments.

Verifying and Troubleshooting

After setting up the tunnel, verify its functionality by checking the listening port. Use netstat -an | findstr 9090 in PowerShell to confirm that 127.0.0.1:9090 is in a LISTENING state. If it is not, check your SSH logs for authentication errors or connection refusals. Common issues include firewalls blocking port 9090 or incorrect proxy configurations in your applications. Ensure that your target applications are set to use SOCKS5 rather than HTTP proxy, as they are not interchangeable. If you need to establish different types of secure tunnels, such as L2TP for remote access, consider reviewing guides on secure remote access with L2TP for alternative networking solutions.

Frequently Asked Questions

How do I stop the SSH tunnel?

If using the command line, press Ctrl+C in the terminal where SSH is running. For background processes started with -f, find the PID using Get-Process ssh and terminate it with Stop-Process. In PuTTY, simply close the session window.

Can I use this SOCKS5 proxy for HTTPS websites?

Yes, SOCKS5 proxies handle both HTTP and HTTPS traffic. However, some older applications might struggle with HTTPS over SOCKS5 due to certificate validation issues. Modern browsers and most client libraries support it natively.

Why is my proxy not working in Chrome?

Chrome requires explicit proxy configuration unless launched with command-line flags. Go to Chrome Settings > System > Open proxy settings, and manually set the SOCKS5 host to 127.0.0.1 and port 9090. Ensure "Proxy for DNS" is unchecked if you want DNS resolution to happen locally.

Is it safe to expose port 9090 to the network?

No, you must bind the proxy to 127.0.0.1 to prevent external access. Binding to 0.0.0.0 exposes the tunnel to your local network, allowing other devices to route their traffic through your SSH connection, which is a significant security risk.

How do I automate the SSH tunnel startup?

You can create a scheduled task in Windows Task Scheduler to run the SSH command at login. Alternatively, use a batch script or PowerShell profile that triggers the tunnel upon startup. Ensure your SSH keys are stored securely and have appropriate permissions.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More