It’s often required to open different kind of connections to a server where there is available just a SSH account (or where only the port
22 is open).
Using ssh tunneling it’s easy to to access any port on the server, or even to connect to any other servers reachable from the server where the SSH account is available.
To access directly (i.e. with MySQL Query Browser) a MySQL service on the remote server, where the access to the port
3306 is denied, the trick is to open a SSH tunnel to the remote server, mapping an arbitrary local port the the remote port
3306. In the following example the local port
5306 is used:
ssh -L 5306:remoteserver.com:3306 email@example.com
In this case, the local port
5306 is forwarded (with ssh tunnelling) to
remoteserver.com, that attaches the tunnel on its port
When the tunnel is open, it’s only required to setup MySQL Query Browser to connect on
localhost:5306 and the connection will be magically forwarded to the remote server on its port
It’s even possible to set the remote side of the tunnel to be mapped not on the remote server itself, but on a different host.
For example, if the local computer is not allowed to access IRC servers, an idea could be to use a remote server where a SSH account is available to tunnel the IRC connections.
Here is an example:
ssh -L 8666:ircserver.org:6666 firstname.lastname@example.org
In this case the local port
8666 is mapped on the port
6666 of the IRC server
ircserver.org, so the local IRC client (i.e. mIRC) should be simply setup to connect on
localhost on the port
Finally, other people in the local network might desire to use the tunnel to the remote server (in this example it’s a IRC server). If the client that opened the SSH tunnel has the IP address
192.168.1.1, the other clients on the local network should connect to
192.168.1.1:8666 to reach the remote ircserver.org on the port 6666.
In this last case, it’s important to make sure that the tunnel binds to the correct local IP address.
If the local client has 2 addresses:
192.168.1.1, it’s useful to open the tunnel binding it on
192.168.1.1. In this way other clients on the LAN can use the tunnel. This is the syntax:
ssh -L 192.168.1.1:8666:ircserver.org:6666 email@example.com
Great work. Good examples.
Very informative blog article.Really looking forward to read more. Much obliged.
Wow! This could be one particular of the most useful blogs We ave ever arrive across on this subject. Basically Great. I am also an expert in this topic so I can understand your effort.
Really enjoyed this article.Thanks Again. Keep writing.
Very nice info and right to the point. I don at know if this is in fact the best place to ask but do you people have any thoughts on where to get some professional writers? Thanks in advance
The way to accomplish great work is by having a love for it
In order to write about life first you must live it
The whole secret of a successful life is to find out what is one’s destiny to do, and then do it
let love lead
whatever you do, do it well
dream big and dare to fail
Feshop store provides original credit cards and dumps. It is real Feshop domain of 2021, where you can access legit shop and Feshop accounts easily. So what are you waiting for? Visit Feshop original site now and get access to unlimited number of real cards.
Unicc provides original credit cards and dumps. It is real Unicc domain of 2021, where you can access legit shop and Unicc accounts easily. So what are you waiting for? Visit Unicc original site now and get access to unlimited number of real cards.