<?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: secsh - how to edit to manage multiple sshd daemons in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/secsh-how-to-edit-to-manage-multiple-sshd-daemons/m-p/5229019#M468152</link>
    <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;If you configure the sshd_config and the ssh_config files as instructed to run multiple daemons, the start/stop for secure shell will handle this for you.&lt;BR /&gt;&lt;BR /&gt;Make the changes:&lt;BR /&gt;&lt;BR /&gt;/sbin/init.d/secsh stop&lt;BR /&gt;/sbin/init.d/secsh start&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Do some testing to make sure the configuration changes work.&lt;BR /&gt;&lt;BR /&gt;Running openssh/secure shell on more than one port is a PITA and I'd have solid reasons for doing so.&lt;BR /&gt;&lt;BR /&gt;SEP&lt;BR /&gt;&lt;BR /&gt;SEP</description>
    <pubDate>Tue, 09 Mar 2010 16:25:52 GMT</pubDate>
    <dc:creator>Steven E. Protter</dc:creator>
    <dc:date>2010-03-09T16:25:52Z</dc:date>
    <item>
      <title>secsh - how to edit to manage multiple sshd daemons</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/secsh-how-to-edit-to-manage-multiple-sshd-daemons/m-p/5229016#M468149</link>
      <description>Hi gang,&lt;BR /&gt;&lt;BR /&gt;I have set up a secondary sshd daemon to run on a separate port.  My question is this...how can I edit the secsh script to successful stop and start all instances of my sshd daemons at bootup/shutdown?  Thanks.</description>
      <pubDate>Tue, 09 Mar 2010 15:42:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/secsh-how-to-edit-to-manage-multiple-sshd-daemons/m-p/5229016#M468149</guid>
      <dc:creator>TheJuiceman</dc:creator>
      <dc:date>2010-03-09T15:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: secsh - how to edit to manage multiple sshd daemons</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/secsh-how-to-edit-to-manage-multiple-sshd-daemons/m-p/5229017#M468150</link>
      <description>You can set the sshd configuration file by starting sshd in sshd -f sshd_conf_2.</description>
      <pubDate>Tue, 09 Mar 2010 15:51:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/secsh-how-to-edit-to-manage-multiple-sshd-daemons/m-p/5229017#M468150</guid>
      <dc:creator>Tingli</dc:creator>
      <dc:date>2010-03-09T15:51:53Z</dc:date>
    </item>
    <item>
      <title>Re: secsh - how to edit to manage multiple sshd daemons</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/secsh-how-to-edit-to-manage-multiple-sshd-daemons/m-p/5229018#M468151</link>
      <description>Let me clarify what I'm looking to do.  I know how to start the daemon via command line.  I'm wanting to be able to stop/start the daemon at bootup/shutdown.</description>
      <pubDate>Tue, 09 Mar 2010 16:05:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/secsh-how-to-edit-to-manage-multiple-sshd-daemons/m-p/5229018#M468151</guid>
      <dc:creator>TheJuiceman</dc:creator>
      <dc:date>2010-03-09T16:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: secsh - how to edit to manage multiple sshd daemons</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/secsh-how-to-edit-to-manage-multiple-sshd-daemons/m-p/5229019#M468152</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;If you configure the sshd_config and the ssh_config files as instructed to run multiple daemons, the start/stop for secure shell will handle this for you.&lt;BR /&gt;&lt;BR /&gt;Make the changes:&lt;BR /&gt;&lt;BR /&gt;/sbin/init.d/secsh stop&lt;BR /&gt;/sbin/init.d/secsh start&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Do some testing to make sure the configuration changes work.&lt;BR /&gt;&lt;BR /&gt;Running openssh/secure shell on more than one port is a PITA and I'd have solid reasons for doing so.&lt;BR /&gt;&lt;BR /&gt;SEP&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 09 Mar 2010 16:25:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/secsh-how-to-edit-to-manage-multiple-sshd-daemons/m-p/5229019#M468152</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2010-03-09T16:25:52Z</dc:date>
    </item>
    <item>
      <title>Re: secsh - how to edit to manage multiple sshd daemons</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/secsh-how-to-edit-to-manage-multiple-sshd-daemons/m-p/5229020#M468153</link>
      <description>I had the same need as you and ended up making a modified version of the secsh script that I have attached here.&lt;BR /&gt;&lt;BR /&gt;It calls the daemon with an alternate config file but care must be taken as the original secsh script kills anything that is named "/opt/ssh/sbin/sshd" when you ask it to stop; hence it kills both your daemons at once which is not desirable. So I hardlinked /opt/ssh/sbin/sshd to /opt/ssh/sbin/224sshd and start it with the link instead in my script so that it doesn't get killed.&lt;BR /&gt;&lt;BR /&gt;Olivier</description>
      <pubDate>Tue, 09 Mar 2010 16:26:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/secsh-how-to-edit-to-manage-multiple-sshd-daemons/m-p/5229020#M468153</guid>
      <dc:creator>Olivier Masse</dc:creator>
      <dc:date>2010-03-09T16:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: secsh - how to edit to manage multiple sshd daemons</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/secsh-how-to-edit-to-manage-multiple-sshd-daemons/m-p/5229021#M468154</link>
      <description>It might be simpler to create another set of startup files cripts such as&lt;BR /&gt;&lt;BR /&gt;/sbin/rc2.d/S394secsh (linked to /sbin/init.d/secsh2)&lt;BR /&gt;/sbin/rc1.d/K605secsh (linked to /sbin/init.d/secsh2)&lt;BR /&gt;/sbin/init.d/secsh2&lt;BR /&gt;/etc/rc.config.d/sshd2&lt;BR /&gt;&lt;BR /&gt;In /etc/rc.config.d/sshd2 ensure that you add options in SSHD_ARGS to use a different config file and port.&lt;BR /&gt;&lt;BR /&gt;In /sbin/init.d/secsh2 you must change the WHAT, and WHAT_CONFIG values to point to the alternate files.&lt;BR /&gt;&lt;BR /&gt;The WHAT_PID is a problem. You need to specify a different PID path for the second daemon in the config file and add it here. &lt;BR /&gt;&lt;BR /&gt;Also in the start section you have to add a "-w" in the grep for the evaluation of the "NOT_RUNNING" variable because the grep will capture both sshd processes.&lt;BR /&gt;&lt;BR /&gt;grep -w "/opt/ssh/sbin/sshd"&lt;BR /&gt;grep "/opt/ssh/sbin/sshd -p XX" where XX is the port number of the second daemon.</description>
      <pubDate>Tue, 09 Mar 2010 16:33:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/secsh-how-to-edit-to-manage-multiple-sshd-daemons/m-p/5229021#M468154</guid>
      <dc:creator>TTr</dc:creator>
      <dc:date>2010-03-09T16:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: secsh - how to edit to manage multiple sshd daemons</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/secsh-how-to-edit-to-manage-multiple-sshd-daemons/m-p/5229022#M468155</link>
      <description>TTr...that is exactly what I needed.  Thank you very much!!!</description>
      <pubDate>Tue, 09 Mar 2010 21:47:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/secsh-how-to-edit-to-manage-multiple-sshd-daemons/m-p/5229022#M468155</guid>
      <dc:creator>TheJuiceman</dc:creator>
      <dc:date>2010-03-09T21:47:40Z</dc:date>
    </item>
  </channel>
</rss>

