Manage SSH Tunnels with Gnome SSH Tunnel Manager
Sponsored Link
Install Gnome SSH Tunnel Manager in Ubuntu
First you need to download the .deb package from here using the following command
wget http://kent.dl.sourceforge.net/sourceforge/gstm/gstm_1.2_i386.deb
Once you have the gstm_1.2_i386.deb package you need to install this using the following command
sudo dpkg -i gstm_1.2_i386.deb
This will complete the installation.
If you want to open this application go to Applications--->Internet--->gSTM
Once it opens you should see the following screen
If you want to add ssh tunnel you need to click on add now you should see the following screen here you need to enter the name of the tunnel and click ok
Once you click ok you can see the following screen here you need to fill all the required detailed for your host and click ok
If you want to add a port redirection you need to select add under portforwarding in the above screen
Once you click on ok you should see the following screen if you want to connect to SSH tunnel select your host and click on start it should start connecting to your host
Examples
Remote Desktop
Remote Desktop to various Windoze servers in the private LAN. Although Remote Desktop supports some degree of encryption itself and you can easily create a port-forward in your firewall. First of all you don’t want to create a port-forward for every desktop you want to reach. Second and most important, you don’t want the Remote Desktop ports open for the world to see… for obvious security reasons.
Secure POP3
If you are running a POP3 service on your *nix router/server you are probably aware of the fact POP3 is an unencrypted, plain-text protocol. Hypothetically this means any ‘man-in-the-middle’ is able to read your username, password and e-mail content. Obviously, on your private LAN this isn’t a problem, however you might want to read your mail over the internet one day…
One solution would be to install pop3s or better yet, imaps. However there is another way, without having to install additional services: an SSH tunnel.The way it works is, you connect to your router/firewall through ssh and set up a portredirect over it (ie. a tunnel). You can then connect your e-mail client to your localhost. The connection will then be redirected over the encrypted SSH connection to your POP3 service. Et voila, a secure POP3 connection.
Greetings,
As being someone who is uninitiated to using a tunnel as you create above using gstm, could you give some examples of how one would access this tunnel from an application? For instance, firefox or a terminal?
Tia,
Terry
I use it for a number of things, for instance if you wanted to connect to a Oracle server using sqldeveloper,uou would set the type to local, the port you want to use on your machine for oracle it would be 1521 and then the internal ip of the oracle server (prob a 192.x.x.x or 10.x.x.x) an then the port you want to connect to on the server.
I work remote and our office uses SSH for everything so i have about 30 tunnels setup.
Hi,
I’ve set this up to access a server at my work, then used port forwarding to access another server on the work network. It all seems to work fine and I get a green light, but I can’t work out how to actually copy files to and from the second server!
Can you tell me how I can do this?
John
hi, can you automate an ssh tunnel; for instance i need to connect to a database to get records every 30 mins or every hour then delete the record in that database.
is there any software that can automate this process or can it be coded??
pau