Wednesday, November 4, 2009

HOWTO: SSH Reverse Proxy (Access machine behind firewall)

This will enable an outside user to ssh (or vnc/etc) to a machine behind a restrictive firewall as long as you can ssh (perhaps over http proxy even) to a remote public machine.

#private - the machine behind the firewall
#public - the public machine
#outsider - the person that requires access to #private

from #private

[1] private# ssh -R 9000:localhost:22 user@public.domain.com

from #public

[2] outsider#  ssh user@public.domain.com

now in that ssh session, #outsider can ssh through the reverse proxy you set up in [1]

[3] user@public# ssh -p 9000 root@localhost

#outsider now has access to #private

2 comments:

  1. Hope to find more educational post from you. Been looking for a kind of post that has full of information. But this one is also helpful, thanks a lot!
    Torrent Downloads UK proxy

    ReplyDelete
  2. for other people who do not know what that means reverse proxy I share with them this video what is reverse proxy

    ReplyDelete