Hot answers tagged ssh-tunneling
The actual ssh process is not complicated. If done as you want, you just create an account in the EC2 machine, and keep an ssh open with autossh from the work machine to the EC2 machine. Others have already pointed out the article you need, start autossh reverse tunnel automatically when network comes up There are several disadvantages of diverting the ...
Have a look at autossh. It has support to reconnect lost tunnels. I will leave a link. The article suggests placing it in /etc/rc.local which is what I would do in Debian. http://linuxaria.com/howto/permanent-ssh-tunnels-with-autossh
You do not have a listener on 127.0.0.1:7000 (or 0.0.0.0:7000) on the guest. Check for a listener on the guest using: netstat -an|grep 7000 See if a line like x.x.x.x:7000 0.0.0.0:* LISTEN exists and on which interface it is bound. The GatewayPorts directive does not make sense in this configuration since it applies only for remote portforwarding.
Only top voted, non community-wiki answers of a minimum length are eligible