Permanent ssh tunnel

By neokrates, written on May 11, 2010

bash   snippet

  • Join date: 11-30-99
  • Posts: 224
View Counter:
  • 6 views
Rate it
Ad
Poll
  • What computer language you specialize in?

    View Results

    Loading ... Loading ...
Feeds:
  • bodytext bodytext bodytext

You want to have the port 80 of target.host forwarded to your local host, local port 1234.

Currently, the target.host:80 is only visible from other subnetwork, and you gateway for this subnetwork is:
your.gateaway.host.

ssh -f -N -L 1234:target.host:80 your_user@your.gateaway.host

Important: would be better if you had ssh public – private keys setup, so you don’t have to type your password.

Be Sociable, Share!
 
Does that help to solve your problem?
VN:F [1.8.5_1061]
Rating: -3 (from 3 votes)
0 votes 'YES'  3 votes 'NO'
TAGS
No tags for this post.
RELATED
Pages
Posts
SOCIAL
Be Sociable, Share!

Leave a Reply