MobaXterm MobaSSH Tunnel Settings: A Comprehensive Guide

Abstract: Configure MobaXterm SSH tunnels to securely forward local ports to remote services or enable reverse connections for NAT bypass.

Created: 2026-09-18 by

Configure MobaXterm MobaSSH tunnels by opening the Session Manager, selecting your SSH session, and navigating to the "Tunnel" tab. Here you can define local port forwarding rules that map a local port on your machine to a specific host and port on the remote server. This setup allows secure access to internal services without exposing them directly to the public internet.

Accessing the Tunnel Configuration Interface

The foundation of any SSH tunnel configuration in MobaXterm begins with the Session Manager. To access these settings, launch MobaXterm and click on the Session button located in the top-left corner of the window. This action opens a dialog box where you can create new connections or modify existing ones. For this guide, we assume you are either creating a new SSH session or editing an existing one that connects to a Linux or Unix-based server. Once inside the Session dialog, ensure the SSH radio button is selected. Enter the hostname or IP address of the remote server in the designated field. Before clicking OK to establish the connection, it is crucial to configure the tunnel parameters. Click on the Tunnel tab within this same dialog box. If this tab is not visible, verify that you have administrative privileges or that your version of MobaXterm includes the full suite of networking features. The interface will present a list of existing tunnel rules if any have been saved previously.

Understanding Local Port Forwarding

Local port forwarding is the most common use case for SSH tunnels. It allows you to access a service running on the remote server as if it were running locally on your machine. In the Tunnel tab, you will see fields labeled Local port, Remote host, and Remote port. To set up a basic tunnel, follow these steps:
  1. Local Port: Specify the port number on your local machine that you want to listen on. For example, use 8080 to access a web service remotely.
  2. Remote Host: Enter the destination host. If the service is running on the same server you are connecting to, use localhost or 127.0.0.1. If you need to reach another machine behind the firewall, enter its internal IP address.
  3. Remote Port: Enter the port number of the service on the remote side. For instance, if you are forwarding traffic to a database, this might be 3306.
After filling in these fields, click Add to append the rule to the list. You can add multiple rules to forward different services simultaneously. For example, you might forward local port 9090 to remote host 192.168.1.50 on remote port 80 for a secondary web application.

Configuring Reverse Tunnels

Reverse tunnels operate differently from local forwards. They allow a remote server to connect back to a service on your local machine. This is particularly useful when your local computer is behind a NAT or firewall and cannot accept incoming connections directly. To configure a reverse tunnel, check the Reverse checkbox next to the tunnel rule before adding it. When using a reverse tunnel, the roles of the ports are effectively swapped from the perspective of the connection initiation. The Local port becomes the destination on your local machine, while the Remote host and Remote port define the listening point on the server. Ensure that the remote server's SSH daemon is configured to permit reverse port forwarding. If the server rejects the request, you may need to adjust the GatewayPorts setting in the server's sshd_config file, although MobaXterm handles the client-side negotiation automatically. For advanced scenarios involving dynamic application-level port mapping, consider exploring how to manage persistent connections to prevent dropouts. See Troubleshooting Autossh/Ssh Failure Setting Tunnel with ExitOnForwardFailure for insights on maintaining stable tunnel links.

Verifying and Testing Your Tunnel

Once your tunnel rules are added, click OK to save the session configuration. MobaXterm will now attempt to establish the SSH connection along with the specified port forwards. Upon successful authentication, you can test the tunnel by opening a web browser or terminal on your local machine and accessing http://localhost:LOCAL_PORT. If the connection is established, you should see the content served by the remote service. If the connection fails, check the MobaXterm session log for error messages. Common issues include permission denied errors on the remote host, which indicate that the user does not have the necessary privileges to open the specified port. Another frequent problem is port conflicts on the local machine, where another application is already using the desired local port. Ensure that no other services are bound to the same local port number. For users experiencing disconnections during heavy usage, optimizing terminal settings can improve stability. Review How to Save MobaXterm Terminal Settings with Implicit CR every LF to ensure your session parameters align with best practices for data integrity.

Managing Existing Tunnels

MobaXterm stores tunnel configurations within the session profile. To modify or remove a rule, reopen the Session Manager, select your SSH session, and go back to the Tunnel tab. You can edit an existing rule by double-clicking it or remove it entirely by selecting it and clicking Delete. Changes are applied only after you reconnect to the server. It is important to note that tunnel rules are not global settings; they are tied to specific sessions. If you have multiple servers requiring similar tunnel setups, you must configure each session individually. However, you can export and import session files to share configurations across different machines or users. This feature is particularly helpful for IT administrators managing standardized environments. For troubleshooting connectivity issues such as unexpected closures, refer to Troubleshooting 'Remote side unexpectedly closed network connection' Error in MobaXterm to diagnose underlying network instability.

Frequently Asked Questions

Can I forward multiple ports at once?

Yes, you can add multiple tunnel rules in the same session. Each rule operates independently, allowing you to forward different local ports to various remote hosts and ports simultaneously. Just ensure that all local ports used are unique and available on your machine.

Why is my tunnel failing to connect?

Common causes include incorrect remote host addresses, blocked ports by firewalls, or insufficient permissions on the remote server. Check the MobaXterm log for specific error codes and verify that the remote service is actually running and listening on the specified port.

Do I need root access on the remote server?

Generally, no. Standard users can forward ports above 1024 without special privileges. However, if you attempt to forward a privileged port (below 1024) on the remote side, you may need sudo or root access depending on the server's security policies.

How do I disable a tunnel temporarily?

You cannot disable a tunnel without removing the rule. To temporarily stop forwarding, delete the rule from the Tunnel tab, save the session, and reconnect. You can re-add the rule later when you need the tunnel again.

Is MobaSSH tunneling encrypted?

Yes, all data transmitted through an SSH tunnel in MobaXterm is encrypted using the SSH protocol. This ensures that even if the traffic is intercepted, the contents remain secure and unreadable to unauthorized parties.

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