<?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: PORT FORWARD SSH in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/port-forward-ssh/m-p/5031417#M430968</link>
    <description>Err... connect to the ports and see whether you get the connectivity you required?&lt;BR /&gt;&lt;BR /&gt;Was this a trick question? :-)</description>
    <pubDate>Mon, 05 Mar 2007 13:05:31 GMT</pubDate>
    <dc:creator>Matti_Kurkela</dc:creator>
    <dc:date>2007-03-05T13:05:31Z</dc:date>
    <item>
      <title>PORT FORWARD SSH</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/port-forward-ssh/m-p/5031412#M430963</link>
      <description>&lt;BR /&gt;&lt;BR /&gt;Server1&lt;BR /&gt;Port 2222&lt;BR /&gt;&lt;BR /&gt;Server2&lt;BR /&gt;Port 22&lt;BR /&gt;&lt;BR /&gt;How can I forward the Port 22 from Server to Port 2222 to Server1. I want also that the Server1 to use 2222 to interact with the Port 22 of Server2.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 01 Mar 2007 16:12:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/port-forward-ssh/m-p/5031412#M430963</guid>
      <dc:creator>Inter_1</dc:creator>
      <dc:date>2007-03-01T16:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: PORT FORWARD SSH</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/port-forward-ssh/m-p/5031413#M430964</link>
      <description>So what your saying is, when you connect to port 22 via ssh on Server1 you want to really access server2? And, when you access port 2222 on server2 you will be accessing server one. Accentually, you will be able to connect to both machines from just one of the machines.&lt;BR /&gt;&lt;BR /&gt;On Server1&lt;BR /&gt;ssh -L2222:server1:22 server2 sleep 1000000&lt;BR /&gt;&lt;BR /&gt;On Server2&lt;BR /&gt;ssh -L22:server1:2222 server2 sleep 1000000&lt;BR /&gt;</description>
      <pubDate>Thu, 01 Mar 2007 16:28:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/port-forward-ssh/m-p/5031413#M430964</guid>
      <dc:creator>hpuxrox</dc:creator>
      <dc:date>2007-03-01T16:28:37Z</dc:date>
    </item>
    <item>
      <title>Re: PORT FORWARD SSH</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/port-forward-ssh/m-p/5031414#M430965</link>
      <description>Be sure to verify your sshd_config file for the following settings&lt;BR /&gt;&lt;BR /&gt;# Port forwarding&lt;BR /&gt;AllowTcpForwarding yes&lt;BR /&gt;&lt;BR /&gt;# If port forwarding is enabled, specify if the server can bind to INADDR_ANY.&lt;BR /&gt;# This allows the local port forwarding to work when connections are received&lt;BR /&gt;# from any remote host.&lt;BR /&gt;GatewayPorts no&lt;BR /&gt;</description>
      <pubDate>Thu, 01 Mar 2007 16:34:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/port-forward-ssh/m-p/5031414#M430965</guid>
      <dc:creator>hpuxrox</dc:creator>
      <dc:date>2007-03-01T16:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: PORT FORWARD SSH</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/port-forward-ssh/m-p/5031415#M430966</link>
      <description>If you have sshd running on a server, you cannot use port 22 as a forwarding source, because sshd is already occupying that port.&lt;BR /&gt;If a port is occupied by a process listening on it, you cannot re-use that port number.&lt;BR /&gt;&lt;BR /&gt;When using the -L option the syntax is&lt;BR /&gt;-L&lt;LOCALPORT&gt;:&lt;REMOTEHOST&gt;:&lt;REMOTEPORT&gt;&lt;BR /&gt;&lt;BR /&gt;The &lt;LOCALPORT&gt; is where the ssh sets up a listening socket on the local host (where the command is executed). Then the data is taken (using the encrypted SSH tunnel) to  the destination host of the SSH connection.&lt;BR /&gt;&lt;BR /&gt;*From there* it is forwarded to &lt;REMOTEHOST&gt;:&lt;REMOTEPORT&gt;. This last step is *not* protected by the SSH encryption, so it's good to make this step as short as possible.&lt;BR /&gt;&lt;BR /&gt;So, if you enter on server1 a command like:&lt;BR /&gt;ssh -L 2222:localhost:22 server2 sleep 1000000&lt;BR /&gt;&lt;BR /&gt;it actually makes sense (the "localhost" is interpreted according to server2's point of view).&lt;BR /&gt;&lt;BR /&gt;After this, if you connect to server1:22, you'll get server1 as normal. But if you connect to server1:2222, it will behave just as if you'd connected to server2:22.&lt;BR /&gt;&lt;BR /&gt;However, unless you use the -g option, connections to server1:2222 will be refused unless they are originating from server1.&lt;BR /&gt;&lt;/REMOTEPORT&gt;&lt;/REMOTEHOST&gt;&lt;/LOCALPORT&gt;&lt;/REMOTEPORT&gt;&lt;/REMOTEHOST&gt;&lt;/LOCALPORT&gt;</description>
      <pubDate>Fri, 02 Mar 2007 08:59:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/port-forward-ssh/m-p/5031415#M430966</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2007-03-02T08:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: PORT FORWARD SSH</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/port-forward-ssh/m-p/5031416#M430967</link>
      <description>Thank you for  your answers. I have done the changes as you suggested, but I would like to know how can I test that is working or not?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 02 Mar 2007 09:16:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/port-forward-ssh/m-p/5031416#M430967</guid>
      <dc:creator>Inter_1</dc:creator>
      <dc:date>2007-03-02T09:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: PORT FORWARD SSH</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/port-forward-ssh/m-p/5031417#M430968</link>
      <description>Err... connect to the ports and see whether you get the connectivity you required?&lt;BR /&gt;&lt;BR /&gt;Was this a trick question? :-)</description>
      <pubDate>Mon, 05 Mar 2007 13:05:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/port-forward-ssh/m-p/5031417#M430968</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2007-03-05T13:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: PORT FORWARD SSH</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/port-forward-ssh/m-p/5031418#M430969</link>
      <description>That was not a tricky question. Some time the brain doesn't function proper and the easy things looks difficult :)</description>
      <pubDate>Mon, 05 Mar 2007 14:14:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/port-forward-ssh/m-p/5031418#M430969</guid>
      <dc:creator>Inter_1</dc:creator>
      <dc:date>2007-03-05T14:14:58Z</dc:date>
    </item>
    <item>
      <title>Re: PORT FORWARD SSH</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/port-forward-ssh/m-p/5031419#M430970</link>
      <description>thanks</description>
      <pubDate>Mon, 05 Mar 2007 14:16:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/port-forward-ssh/m-p/5031419#M430970</guid>
      <dc:creator>Inter_1</dc:creator>
      <dc:date>2007-03-05T14:16:03Z</dc:date>
    </item>
  </channel>
</rss>

