Reverse SSH Tunnel Ubuntu and Windows 7
Hello,
I am currently running 64-bit Windows 7 from my home laptop and I would like to establish an SSH reverse tunnel to my laptop from my work Ubuntu 64-bit machine. I have been reading many "tutorials" that have led me nowhere and I feel as though I'm chasing my tail now. I have done the following on my Ubuntu machine: Code:
ssh -R 19999:localhost:22 laptop_ip Code:
Host Name: host_IP p.s. I would also like to enable x-forwarding, but for now I would like to have remote access to the Ubuntu machine. |
it sounds like you want to connect to a workstation at your office from your house.
It also appears that you have been able to connect to your own sshd from localhost (your workstation). You may want to look at local filtering rules in iptables. Also, if your behind a router at your office there is a good chance that port 22 is filtered / blocked. YOu will need to speak with admin for your office network to see if thats the issue. the same thing goes for your home connection, check your router/modem to see if it is blocking traffic to port 22. |
Quote:
Control Panel > System and Security > Windows Firewall > Advanced Settings > Inbound Rules (top left of window, found in left column) > New rule (Top right of window, in left column) > port > Specify Port (in my case, port 22) > Allow Connection > name (whatever you feel like) and it worked! Unfortunately I haven't been able to get the reverse tunnel to work, but this is one problem down! |
Ok,
here is a picture of how your connection is going. Work-station Work-Router Home-Router Laptop 1 >>>>>>>>>>>>>>>>>>> 2 >>>>>>>>>>>>>>>>>>> 3 >>>>>>>>>>>>>>>>> 4 Location #1
Location #2
Location #3
Location #4
Quote:
|
Thanks for the helpful figure!
Quote:
|
While I am sure others here will be able to give you solution, I am un able too. I dont know how to have sshd ( workstation ) initiate a connection to a client ( laptop ). You might try googling for it. However, if the individual in charge of the network does not wish to have this traffic and you find a hack/workaround and get caught....bad juju.
|
Well I do not condone getting around installed safeguards on your company network, from a theory standpoint I would say that your options would be to run the SSHD daemon on a port that is allowed through the firewall or run an SSH server on your home machine, I believe that the reason it is not working is because you do not have an SSH server running one the computer you are connecting to.
With all of that said why don't you ask your IT guy about VPN access, or ask your boss about it. If everything is on the up and up then this shouldn't be an issue to ask about it. |
All times are GMT -5. The time now is 10:45 PM. |