Permanent ssh tunnel

By neokrates, written on May 11, 2010

bash   snippet

Rate it
  • 1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
    Loading ... Loading ...
Ad
Poll
  • How does version control (VCS) work in your enterprise?

    • Different answer (100%, 7 Votes)
    • All developers can do anything with VCS (0%, 0 Votes)
    • Different groups have different permissions or roles (merge, admin, just view, etc) (0%, 0 Votes)
    • Our SCM is managed by external partner (0%, 0 Votes)

    Total Voters: 7

    Vote

    Loading ... Loading ...
Feeds:
  • bodytext bodytext bodytext
Most popular search terms:

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.

 
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
    nope :(
SOCIAL
Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • bodytext
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • BlinkList
  • Blogosphere News
  • E-mail this story to a friend!
  • Furl
  • LinkArena
  • Live
  • MisterWong
  • Print this article!
  • StumbleUpon
  • Technorati
  • Webnews.de
  • YahooMyWeb

Leave a Reply