<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: ssh tunnel in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/ssh-tunnel/m-p/4744822#M81174</link>
    <description>Since gateway includes NAT, a direct SSH connection from LAPTOP to webserver2 might not be possible.&lt;BR /&gt;&lt;BR /&gt;In that case:&lt;BR /&gt;&lt;BR /&gt;ssh -L 8080:webserver2:80 gateway&lt;BR /&gt;&lt;BR /&gt;Then type this URL to your browser:&lt;BR /&gt;&lt;BR /&gt;http://localhost:8080&lt;BR /&gt;&lt;BR /&gt;The browser will connect to SSH tunnel set up by your SSH client at localhost:8080. The traffic will be passed to sshd on gateway wrapped within the encrypted SSH protocol. On gateway, the sshd makes a regular, unencrypted TCP connection to port 80 of webserver2 and passes the tunneled traffic to it.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If your SSH is not very old, it probably supports dynamic tunneling too.&lt;BR /&gt;&lt;BR /&gt;On LAPTOP, start a dynamic SSH tunnel like this:&lt;BR /&gt;&lt;BR /&gt;ssh -D 8080 gateway&lt;BR /&gt;&lt;BR /&gt;Then configure your web browser to use a SOCKS proxy at localhost, port 8080.&lt;BR /&gt;&lt;BR /&gt;Now all the connections made by your web browser are first tunneled by SSH to gateway, and will proceed from there to their destination. So you can use a regular URL like this:&lt;BR /&gt;&lt;BR /&gt;http://webserver2/&lt;BR /&gt;&lt;BR /&gt;This may make things much easier if the content of webserver2 includes a lot of absolute URLs. &lt;BR /&gt;&lt;BR /&gt;(NOTE: if the IP address of webserver2 is not resolvable by LAPTOP, you may have to use webserver2's IP address instead of the hostname.)&lt;BR /&gt;&lt;BR /&gt;Remember to remove the SOCKS proxy specification from your browser's configuration when you're done, or you'll eventually spend some time wondering why your browser won't work.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If you can directly SSH from LAPTOP to webserver2, you can replace all instances of "gateway" in command examples above with "webserver2".&lt;BR /&gt;&lt;BR /&gt;MK</description>
    <pubDate>Fri, 28 Jan 2011 12:24:46 GMT</pubDate>
    <dc:creator>Matti_Kurkela</dc:creator>
    <dc:date>2011-01-28T12:24:46Z</dc:date>
    <item>
      <title>ssh tunnel</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ssh-tunnel/m-p/4744819#M81171</link>
      <description>Hi there&lt;BR /&gt;&lt;BR /&gt;My network looks like this:&lt;BR /&gt;&lt;BR /&gt;LAPTOP&lt;BR /&gt;|&lt;BR /&gt;|&lt;BR /&gt;INTERNET&lt;BR /&gt;|&lt;BR /&gt;gateway (nat points to port 80 @ webserver1)&lt;BR /&gt;|&lt;BR /&gt;|___webserwer1(port 80)&lt;BR /&gt;|&lt;BR /&gt;|___webserver2 (port 80)&lt;BR /&gt;&lt;BR /&gt;I need to be able to reach the webpages @ webserver2 from my laptop while out of the building and I can ssh to  the machine.&lt;BR /&gt;&lt;BR /&gt;I'm building VPN but in the meantime  - how to create a ssh tunnel to be able to browse pages on webserver2 ?&lt;BR /&gt;&lt;BR /&gt;Reagrds&lt;BR /&gt;&lt;BR /&gt;Peter</description>
      <pubDate>Thu, 27 Jan 2011 14:30:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ssh-tunnel/m-p/4744819#M81171</guid>
      <dc:creator>Piotr Kirklewski</dc:creator>
      <dc:date>2011-01-27T14:30:51Z</dc:date>
    </item>
    <item>
      <title>Re: ssh tunnel</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ssh-tunnel/m-p/4744820#M81172</link>
      <description>configure ssh client with X11 forwarding enabled.&lt;BR /&gt;&lt;BR /&gt;ssh to webserver2&lt;BR /&gt;&lt;BR /&gt;start X11 server on laptop&lt;BR /&gt;&lt;BR /&gt;run firefox from server &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 27 Jan 2011 16:26:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ssh-tunnel/m-p/4744820#M81172</guid>
      <dc:creator>Tim Nelson</dc:creator>
      <dc:date>2011-01-27T16:26:35Z</dc:date>
    </item>
    <item>
      <title>Re: ssh tunnel</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ssh-tunnel/m-p/4744821#M81173</link>
      <description>ssh -L 80:&lt;WEBSERVER2 ip="" address=""&gt;:80 username@webserver2.system&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Point your browser to http://localhost to get to the web pages on webserver2&lt;/WEBSERVER2&gt;</description>
      <pubDate>Fri, 28 Jan 2011 00:56:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ssh-tunnel/m-p/4744821#M81173</guid>
      <dc:creator>Jimmy Vance</dc:creator>
      <dc:date>2011-01-28T00:56:02Z</dc:date>
    </item>
    <item>
      <title>Re: ssh tunnel</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ssh-tunnel/m-p/4744822#M81174</link>
      <description>Since gateway includes NAT, a direct SSH connection from LAPTOP to webserver2 might not be possible.&lt;BR /&gt;&lt;BR /&gt;In that case:&lt;BR /&gt;&lt;BR /&gt;ssh -L 8080:webserver2:80 gateway&lt;BR /&gt;&lt;BR /&gt;Then type this URL to your browser:&lt;BR /&gt;&lt;BR /&gt;http://localhost:8080&lt;BR /&gt;&lt;BR /&gt;The browser will connect to SSH tunnel set up by your SSH client at localhost:8080. The traffic will be passed to sshd on gateway wrapped within the encrypted SSH protocol. On gateway, the sshd makes a regular, unencrypted TCP connection to port 80 of webserver2 and passes the tunneled traffic to it.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If your SSH is not very old, it probably supports dynamic tunneling too.&lt;BR /&gt;&lt;BR /&gt;On LAPTOP, start a dynamic SSH tunnel like this:&lt;BR /&gt;&lt;BR /&gt;ssh -D 8080 gateway&lt;BR /&gt;&lt;BR /&gt;Then configure your web browser to use a SOCKS proxy at localhost, port 8080.&lt;BR /&gt;&lt;BR /&gt;Now all the connections made by your web browser are first tunneled by SSH to gateway, and will proceed from there to their destination. So you can use a regular URL like this:&lt;BR /&gt;&lt;BR /&gt;http://webserver2/&lt;BR /&gt;&lt;BR /&gt;This may make things much easier if the content of webserver2 includes a lot of absolute URLs. &lt;BR /&gt;&lt;BR /&gt;(NOTE: if the IP address of webserver2 is not resolvable by LAPTOP, you may have to use webserver2's IP address instead of the hostname.)&lt;BR /&gt;&lt;BR /&gt;Remember to remove the SOCKS proxy specification from your browser's configuration when you're done, or you'll eventually spend some time wondering why your browser won't work.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If you can directly SSH from LAPTOP to webserver2, you can replace all instances of "gateway" in command examples above with "webserver2".&lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Fri, 28 Jan 2011 12:24:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ssh-tunnel/m-p/4744822#M81174</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2011-01-28T12:24:46Z</dc:date>
    </item>
  </channel>
</rss>

