

How to connect to my Cisco router or switch behind a firewall? This will silently create an encrypted SSH tunnel to ServerB and then use this tunnel in order to connect to ServerC. fill-in required information in order to connect to "ServerB".check "Connect through SSH gateway (jump host).put "ServerC" in the "remote host" field.create a new SSH, telnet, RDP or VNC session.Unfortunately, ServerC cannot be reached directly on the network, you have to connect to ServerB first, then from ServerB to ServerC. Let’s say we want to reach ServerC through SSH, telnet, RDP or VNC. MobaXterm makes it really easy to connect through a jump-host. How to connect to remote computers using a jump host Local applications should be compatible with this protocol and allow configuration of a "SOCKS proxy". Dynamic port-forwarding: same principle, but the dynamic tunnel allows connection to any remote hosts and any remote ports.Remote port-forwarding: this is the same principle, a tunnel is opened from local computer to jump host, but the aim is to connect from remote server to local computer.This picture shows the mechanism called “Local port forwarding”, but there are 2 other kinds of port-forwarding: Their connection will be automatically forwarded through the encrypted SSH tunnel, go through the jump host and reach the remote server on port 3306. In order to reach it directly, the client applications will have to connect to “localhost”, on port 12345. In the example above, the remote server is running a MySQL database on port 3306. A SSH connection will be established from “My computer” to “SSH server” (used as a “jump host”) and the local clients will use this tunnel in order to directly connect to the remote server.

This screenshot explains local port-forwarding mechanism: local clients need to connect to a remote server which cannot be reached directly through network. If you are not used with SSH tunnels, here is a simple graphical explanation on how a simple SSH-tunnel works: Simple explanation of SSH tunnels and port-forwarding In all these situations, you will be able to achieve your goal easily thanks to SSH-tunnels. when you open a connection to a remote server and need to easily open a reverse communication channel from the remote server to your local computer.when you need to get through a network equipment where only SSH protocol is allowed.when you connect to a home computer, NAS or Raspberry Pi from the Internet.when you want to secure a protocol (like VNC or X11) by transporting it through an encrypted SSH channel.when your remote program only binds to 127.0.0.1 (if you are using a mysql instance only bound to localhost on your web server for instance).when your remote server is not directly accessible (behind a firewall or in a DMZ).There are many cases in which you will find SSH-tunnels very useful: Today, we will try to give you a simple explanation of a life-saver feature: SSH tunnels and port-forwarding!
