5
5
So unfortunately I live in a place that will not let me have a static IP, so I have been setting up access to my home computer via reverse SSH tunnels that run on an micro amazon ec2 instance. I have gotten SSH to work fine, but I cannot figure out port forwards.
Here is a small infographic I made to help illustrate (i felt the question was clearer with a diagram of what I was trying to do.
Here are the commands listed in the graphic:
I the following on my home computer:
ssh -R 1337:localhost:22 -i .ssh/tokyoMinekey.pem ec2-user@ec2serveraddress
and I run this on the ec2 server:
ssh -L6600:localhost:6600 -Nf localhost -p 1337
FYI, I have added port 6600 into my security group for amazon ec2, so its open on the ec2 side
I have a similar setup (I think) that allows me to connect to my mac at home via VNC... I use a server in the middle and push everything through ssh. Office Win7 machine tunnels into the server and the home MacOS machine tunnels into the server, then on the office Win7 machine I launch a VNC client and connect to localhost:customport... maybe the tunnel on your EC2 instance should actually be initiated by your client? – baraboom – 2011-06-28T14:00:29.563