<?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 inittab in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/ssh-tunnel-in-inittab/m-p/5179006#M50868</link>
    <description>solution above.</description>
    <pubDate>Wed, 03 Jun 2009 22:58:06 GMT</pubDate>
    <dc:creator>Mark McDonald_2</dc:creator>
    <dc:date>2009-06-03T22:58:06Z</dc:date>
    <item>
      <title>ssh tunnel in inittab</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ssh-tunnel-in-inittab/m-p/5179004#M50866</link>
      <description>Hi All&lt;BR /&gt;&lt;BR /&gt;I'm having some issues with an ssh tunnel.&lt;BR /&gt;&lt;BR /&gt;I have a basic perl server that listens on port 8890, it accepts a command and runs it locally and returns the output. I also have a perl client that takes hostname, port, command as arguments. When I run the client with port 8890 it connects and runs the command.&lt;BR /&gt;&lt;BR /&gt;I am testing on the local machine for now.&lt;BR /&gt;&lt;BR /&gt;Tunnel is created with:&lt;BR /&gt;ssh -fN -L 7777:localhost:8890 root@localhost&lt;BR /&gt;&lt;BR /&gt;Then the client connects to 7777 and also works fine.&lt;BR /&gt;&lt;BR /&gt;If I put the ssh command in to the inittab with the "-f" init looses it and keeps respawning. So the command in inittab is ssh -N -L 7777:localhost:8890 root@localhost.&lt;BR /&gt;&lt;BR /&gt;This does not allow the client to connect. &lt;BR /&gt;&lt;BR /&gt;I added the -f back to the inittab and I get 10 of the ssh processes fire off, but the client works again.&lt;BR /&gt;&lt;BR /&gt;why? is there some other ssh switch for inittab?&lt;BR /&gt;&lt;BR /&gt;I eventually want the server program on 4 machines, with ssh tunnels from another machine so that the client can just fire commands down the relevant port locally, rather than having to ssh in and run the command each time.&lt;BR /&gt;&lt;BR /&gt;Any ideas appreciated.&lt;BR /&gt;&lt;BR /&gt;Mark</description>
      <pubDate>Wed, 03 Jun 2009 02:44:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ssh-tunnel-in-inittab/m-p/5179004#M50866</guid>
      <dc:creator>Mark McDonald_2</dc:creator>
      <dc:date>2009-06-03T02:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: ssh tunnel in inittab</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ssh-tunnel-in-inittab/m-p/5179005#M50867</link>
      <description>found it after another look on google&lt;BR /&gt;&lt;BR /&gt;ssh -nNTx -L etc etc&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 03 Jun 2009 02:55:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ssh-tunnel-in-inittab/m-p/5179005#M50867</guid>
      <dc:creator>Mark McDonald_2</dc:creator>
      <dc:date>2009-06-03T02:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: ssh tunnel in inittab</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ssh-tunnel-in-inittab/m-p/5179006#M50868</link>
      <description>solution above.</description>
      <pubDate>Wed, 03 Jun 2009 22:58:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ssh-tunnel-in-inittab/m-p/5179006#M50868</guid>
      <dc:creator>Mark McDonald_2</dc:creator>
      <dc:date>2009-06-03T22:58:06Z</dc:date>
    </item>
  </channel>
</rss>

