I have a program running on remote server port 9999. As it don't support any kind of encryption and auth, I'm using the ssh tunnel to access to it.
This is the command I am using:
ssh -L 9999:localhost:9999 user@remotehost
In order to keep this tunnel alive. I write a ssh script to monitor and restart it if anything went wrong.
I rely on the following script tunnel.sh written by others to keep a ssh tunnel alive:
#!/bin/bash
export SSH_HOST=tim@server
if [ ! -f /tmp/.tunnel ]
then
echo "Creat SSH tunnel"
ssh -f -D 9999 $SSH_HOST "if [ -f ~/.tunnel ]; then rm ~/.tunnel; fi; while [ !
I am running a GUI app (Gnucash) that connects to a remote Postgres database via a secure shell session. I can use the SSH -L command to tunnel a local port and then separately run Gnucash and this works fine.
What I'd like to do is use a single shell script that sets up the tunnel and then calls Gnucash. Is that possible?
I have the following configuration and want to establish a tunnel on a tunnel.
I read already the following topic:
How to put a tunnel in a tunnel?
My configuration:
Notebook --> Linux Server A --> Linux Server B
Notebook: Windows XP with putty
Linux Server A and B: Ubuntu 10.10
I have a ssh connection with a tunnel from my notebook via putty to Server A.
Now I want to establish a tunne
we’ll just use port-forwarding through an SSH tunnel, so your MySQL client thinks it’s connecting to your localhost machine, but it’s really connecting to the other server through the tunnel.
I want to have a ssh tunnel open every time I log in to my Ubuntu machine. .bashrc seems like the wrong place for this since I only need one tunnel for the whole session, not a tunnel per xterm. init.d seems wrong since I would like this one for one user.
It's easy to access window destop from linux using the command rdesktop command. The windows machine may be in our LAN or machine connected in internet. If the linux didn't have rdesktop installed , you can download rdesktop and install it. Example for rdesktop:
Here is a situation I am on a Linux machine and I have to access a windows xp machine to which I can connect with rdesktop.The problem is Windows XP machine is remotely located and to be able to do a rdesktop I first physically go to the windows machine and login, I come back to my chair open the terminal on my linux machine and do an rdesktop, then windows property dialog opens and asks to discon
We are in the process of migrating a datacenter hosted web application to a cloud provider, and we need to set up a VPN tunnel between one of the cloud servers and our internal office network so that we can move/access data securely from an internal database server.
In our current setup we have a hardware VPN tunnel which is setup on the firewalls of the two different networks (office and datacen