Server Administration & Management

How to SSH Port Forwarding without starting a new session

You can forward ports with ssh like this:

# ssh -L 8888:localhost:80 user@remotehost

This will log you into remotehost as user, and port 8888 on your local machine will be tunnelled to port 80 on remotehost. If remotehost can see a machine that you can’t (for example, if it’s on an internal network), you can even do this:

# ssh -L 8888:internalhost:80 user@borderhost

This will log you in to borderhost, and localhost:8888 will be directed to internalhost:80, even though you may not be able to see internalhost directly yourself.

January 17, 2013 - Posted by | SSH | ,


  1. I used to be recommended this web site by means of my cousin.

    I am not sure whether or not this post is written by him as nobody else realize
    such distinctive approximately my problem. You’re amazing! Thanks!

    Comment by insurance adjuster jobs in michigan | May 2, 2013 | Reply

  2. Paragraph writing is also a excitement, if you be acquainted with
    then you can write otherwise it is difficult to write.

    Comment by Full Report | May 7, 2013 | Reply

  3. Thanks for sharing your thoughts on good diet plans muscle building.

    Comment by 800 calorie meal plan weight loss | May 12, 2013 | Reply

  4. Excellent blog right here! Also your site so much up fast!
    What host are you using? Can I am getting your associate
    hyperlink in your host? I desire my website loaded up as quickly as yours lol

    Comment by good diet plans for men to lose weight | May 13, 2013 | Reply

  5. Hey there, I think your blog might be having browser compatibility
    issues. When I look at your website in Ie, it looks fine but
    when opening in Internet Explorer, it has
    some overlapping. I just wanted to give you a quick heads up!
    Other then that, fantastic blog!

    Comment by Roscoe | June 2, 2013 | Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: