<?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: Monitoring if ssh works in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-if-ssh-works/m-p/4671934#M381867</link>
    <description>why not use aide or tripwire cron jobs on each system to detect when something changed on the systems.&lt;BR /&gt;</description>
    <pubDate>Mon, 09 Aug 2010 18:08:18 GMT</pubDate>
    <dc:creator>Emil Velez</dc:creator>
    <dc:date>2010-08-09T18:08:18Z</dc:date>
    <item>
      <title>Monitoring if ssh works</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-if-ssh-works/m-p/4671930#M381863</link>
      <description>Hi All,&lt;BR /&gt;I have a setup of around 100 servers with atleast 10 users on each box.The public key from one server has been created and updated on all other servers , so that passwordless login can be done from any use.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;We recently had a problem that ssh keys on one of the system was changed and scripts using ssh failed.&lt;BR /&gt;&lt;BR /&gt;I want to come up with a bash script to check if ssh is successful from one server to all servers using all users (All permutations and combinations)&lt;BR /&gt;&lt;BR /&gt;Any ideas would be appreciated.&lt;BR /&gt;</description>
      <pubDate>Mon, 09 Aug 2010 07:19:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-if-ssh-works/m-p/4671930#M381863</guid>
      <dc:creator>Rohit Khaladkar</dc:creator>
      <dc:date>2010-08-09T07:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: Monitoring if ssh works</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-if-ssh-works/m-p/4671931#M381864</link>
      <description>does the users have a passprase?&lt;BR /&gt;if not, just su to the user and ssh to all serverslike&lt;BR /&gt;&lt;BR /&gt;cat /tmp/list&lt;BR /&gt;server1&lt;BR /&gt;server2&lt;BR /&gt;serveretc&lt;BR /&gt;=======&lt;BR /&gt;su - user&lt;BR /&gt;cat /tmp/list|while read line&lt;BR /&gt;do&lt;BR /&gt;ssh $line uname -a&lt;BR /&gt;done &amp;gt;&amp;gt; /tmp/file&lt;BR /&gt;and check the /tmp/file&lt;BR /&gt;</description>
      <pubDate>Mon, 09 Aug 2010 10:49:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-if-ssh-works/m-p/4671931#M381864</guid>
      <dc:creator>F Verschuren</dc:creator>
      <dc:date>2010-08-09T10:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: Monitoring if ssh works</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-if-ssh-works/m-p/4671932#M381865</link>
      <description>This is something I cam up with:&lt;BR /&gt;&lt;BR /&gt;Host_name_list="path of the file which has hostnames"&lt;BR /&gt;User_name_list="path of the file which has usernames"&lt;BR /&gt;Log_file="path to the file which would contain all the ssh log entries"&lt;BR /&gt;&lt;BR /&gt;for host_name in $Host_name_list&lt;BR /&gt;do&lt;BR /&gt;    for user in $User_name_list&lt;BR /&gt;    do&lt;BR /&gt;       ssh -q -o "BatchMode=yes" ${user}@${host} "echo 2&amp;gt;&amp;amp;1" &amp;amp;&amp;amp; echo "Successful for" $user@$host_name\ &lt;BR /&gt;         || echo "Failed for" $user@$host_name"&lt;BR /&gt;       &lt;BR /&gt;    done&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;mailx -s "This is it" rohit.khaladkar@xyz.com &amp;lt; $Log_file&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Is there a better way out..?&lt;BR /&gt;</description>
      <pubDate>Mon, 09 Aug 2010 10:55:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-if-ssh-works/m-p/4671932#M381865</guid>
      <dc:creator>Rohit Khaladkar</dc:creator>
      <dc:date>2010-08-09T10:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: Monitoring if ssh works</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-if-ssh-works/m-p/4671933#M381866</link>
      <description>&amp;gt; ssh -q -o "BatchMode=yes" ...&lt;BR /&gt; &lt;BR /&gt;I would probably add -n to handle stdin since there won't be any stdin.</description>
      <pubDate>Mon, 09 Aug 2010 17:43:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-if-ssh-works/m-p/4671933#M381866</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2010-08-09T17:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: Monitoring if ssh works</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-if-ssh-works/m-p/4671934#M381867</link>
      <description>why not use aide or tripwire cron jobs on each system to detect when something changed on the systems.&lt;BR /&gt;</description>
      <pubDate>Mon, 09 Aug 2010 18:08:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-if-ssh-works/m-p/4671934#M381867</guid>
      <dc:creator>Emil Velez</dc:creator>
      <dc:date>2010-08-09T18:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: Monitoring if ssh works</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-if-ssh-works/m-p/4671935#M381868</link>
      <description>&lt;!--!*#--&gt;&amp;gt; why not use aide or tripwire cron jobs on&lt;BR /&gt;&amp;gt; each system to detect when something&lt;BR /&gt;&amp;gt; changed on the systems.&lt;BR /&gt;&lt;BR /&gt;Sometimes it's useful to test the actual&lt;BR /&gt;thing which you care about.  It may be&lt;BR /&gt;possible to use X-rays or neutrons or&lt;BR /&gt;ultrasonic sound or eddy currents, or any&lt;BR /&gt;number of other methods, to test a hammer,&lt;BR /&gt;but it's often easier and more reliable just&lt;BR /&gt;to hit a nail with the thing, and see what&lt;BR /&gt;happens.  There are advantages to "simple and&lt;BR /&gt;direct".</description>
      <pubDate>Mon, 09 Aug 2010 19:18:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/monitoring-if-ssh-works/m-p/4671935#M381868</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2010-08-09T19:18:10Z</dc:date>
    </item>
  </channel>
</rss>

