<?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: Fixing sshd after someone hosed /var in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/fixing-sshd-after-someone-hosed-var/m-p/4670504#M731464</link>
    <description>&lt;!--!*#--&gt;&amp;gt; So now when I try to connect with ssh I get&lt;BR /&gt;&amp;gt; "connection refused" and nothing in the&lt;BR /&gt;&amp;gt; syslog about the connect.&lt;BR /&gt;&lt;BR /&gt;There's nothing in the log because sshd is&lt;BR /&gt;not running ("Connection refused"), so it&lt;BR /&gt;can't log anything.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Running "ps -ef | grep sshd" shows me that&lt;BR /&gt;&amp;gt; sshd is still running.&lt;BR /&gt;&amp;gt; &lt;BR /&gt;&amp;gt; root 19916 24414 1 18:12:22 pts/te 0:00 grep sshd&lt;BR /&gt;&lt;BR /&gt;That's your grep command, not the sshd&lt;BR /&gt;itself.  What _that_ shows is that sshd is&lt;BR /&gt;_not_ running, which is consistent with that&lt;BR /&gt;"Connection refused" complaint above.</description>
    <pubDate>Thu, 05 Aug 2010 01:43:36 GMT</pubDate>
    <dc:creator>Steven Schweda</dc:creator>
    <dc:date>2010-08-05T01:43:36Z</dc:date>
    <item>
      <title>Fixing sshd after someone hosed /var</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/fixing-sshd-after-someone-hosed-var/m-p/4670501#M731461</link>
      <description>We had a problem where one of our vendors wiped out /var and restored from a previous backup.  Turns out that the backup was from before I installed ssh.&lt;BR /&gt;&lt;BR /&gt;So now when I try to connect with ssh I get "connection refused" and nothing in the syslog about the connect.&lt;BR /&gt;&lt;BR /&gt;Doing some google I found /sbin/init.d/secsh start but it just tells me.&lt;BR /&gt;&lt;BR /&gt;/var/empty must be owned by root and not group or world-writable.&lt;BR /&gt;EXIT CODE: 255&lt;BR /&gt;&lt;BR /&gt;From the bits and pieces I have learned they were trying to cleanup the printers in sam and so tried to do a save/restore of the printer config to make sure its clean.  &lt;BR /&gt;&lt;BR /&gt;Doing the restore though apparently caused the printers list to be empty so they restored from tape to get the devices back.&lt;BR /&gt;&lt;BR /&gt;Apparently breaking ssh.  Grrr.&lt;BR /&gt;&lt;BR /&gt;So how can I get this fixed?  Running "ps -ef | grep sshd" shows me that sshd is still running.&lt;BR /&gt;&lt;BR /&gt;root 19916 24414  1 18:12:22 pts/te    0:00 grep sshd&lt;BR /&gt;&lt;BR /&gt;Thank you.</description>
      <pubDate>Thu, 05 Aug 2010 00:13:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/fixing-sshd-after-someone-hosed-var/m-p/4670501#M731461</guid>
      <dc:creator>yaplej</dc:creator>
      <dc:date>2010-08-05T00:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: Fixing sshd after someone hosed /var</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/fixing-sshd-after-someone-hosed-var/m-p/4670502#M731462</link>
      <description>I just fixed the permissions on /var/empty and it was able to start correctly.  Duh.</description>
      <pubDate>Thu, 05 Aug 2010 01:14:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/fixing-sshd-after-someone-hosed-var/m-p/4670502#M731462</guid>
      <dc:creator>yaplej</dc:creator>
      <dc:date>2010-08-05T01:14:58Z</dc:date>
    </item>
    <item>
      <title>Re: Fixing sshd after someone hosed /var</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/fixing-sshd-after-someone-hosed-var/m-p/4670503#M731463</link>
      <description>;) nice work dude....&lt;BR /&gt;i wish somehow u could assign 10 point to yourself.&lt;BR /&gt;&lt;BR /&gt;BR,&lt;BR /&gt;Kapil</description>
      <pubDate>Thu, 05 Aug 2010 01:28:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/fixing-sshd-after-someone-hosed-var/m-p/4670503#M731463</guid>
      <dc:creator>Kapil Jha</dc:creator>
      <dc:date>2010-08-05T01:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: Fixing sshd after someone hosed /var</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/fixing-sshd-after-someone-hosed-var/m-p/4670504#M731464</link>
      <description>&lt;!--!*#--&gt;&amp;gt; So now when I try to connect with ssh I get&lt;BR /&gt;&amp;gt; "connection refused" and nothing in the&lt;BR /&gt;&amp;gt; syslog about the connect.&lt;BR /&gt;&lt;BR /&gt;There's nothing in the log because sshd is&lt;BR /&gt;not running ("Connection refused"), so it&lt;BR /&gt;can't log anything.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Running "ps -ef | grep sshd" shows me that&lt;BR /&gt;&amp;gt; sshd is still running.&lt;BR /&gt;&amp;gt; &lt;BR /&gt;&amp;gt; root 19916 24414 1 18:12:22 pts/te 0:00 grep sshd&lt;BR /&gt;&lt;BR /&gt;That's your grep command, not the sshd&lt;BR /&gt;itself.  What _that_ shows is that sshd is&lt;BR /&gt;_not_ running, which is consistent with that&lt;BR /&gt;"Connection refused" complaint above.</description>
      <pubDate>Thu, 05 Aug 2010 01:43:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/fixing-sshd-after-someone-hosed-var/m-p/4670504#M731464</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2010-08-05T01:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: Fixing sshd after someone hosed /var</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/fixing-sshd-after-someone-hosed-var/m-p/4670505#M731465</link>
      <description>Ah woops didnt notice that it was finding the grep command.</description>
      <pubDate>Mon, 09 Aug 2010 02:56:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/fixing-sshd-after-someone-hosed-var/m-p/4670505#M731465</guid>
      <dc:creator>yaplej</dc:creator>
      <dc:date>2010-08-09T02:56:46Z</dc:date>
    </item>
    <item>
      <title>Re: Fixing sshd after someone hosed /var</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/fixing-sshd-after-someone-hosed-var/m-p/4670506#M731466</link>
      <description>&lt;!--!*#--&gt;&amp;gt; [...] didnt notice that it was finding the&lt;BR /&gt;&amp;gt; grep command.&lt;BR /&gt;&lt;BR /&gt;The usual trick in this case is to use a&lt;BR /&gt;simple regular expression which won't match&lt;BR /&gt;itself.  For example:&lt;BR /&gt;&lt;BR /&gt;      grep [s]shd&lt;BR /&gt;&lt;BR /&gt;I find it to be a trick worth remembering.</description>
      <pubDate>Mon, 09 Aug 2010 04:03:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/fixing-sshd-after-someone-hosed-var/m-p/4670506#M731466</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2010-08-09T04:03:31Z</dc:date>
    </item>
  </channel>
</rss>

