<?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: Checking ssh authentication in a script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/checking-ssh-authentication-in-a-script/m-p/3435916#M743953</link>
    <description>In this case you will need to use expect tool. What this tool does is lloks at "prompts" and keys in things that you want.&lt;BR /&gt;&lt;BR /&gt;There docs about this tool and easy to to understand.&lt;BR /&gt;&lt;BR /&gt;Anil</description>
    <pubDate>Fri, 03 Dec 2004 14:22:12 GMT</pubDate>
    <dc:creator>RAC_1</dc:creator>
    <dc:date>2004-12-03T14:22:12Z</dc:date>
    <item>
      <title>Checking ssh authentication in a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/checking-ssh-authentication-in-a-script/m-p/3435914#M743951</link>
      <description>I'm writing a script which will ssh to our various machines and perform some automated tasks. There are some machines however that do not yet have key authentication set up and as such when I run the ssh command it asks for a password and waits. How can I check for and ignore this behaviour and move onto the next server?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Tony</description>
      <pubDate>Fri, 03 Dec 2004 05:45:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/checking-ssh-authentication-in-a-script/m-p/3435914#M743951</guid>
      <dc:creator>Tony Walker_2</dc:creator>
      <dc:date>2004-12-03T05:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: Checking ssh authentication in a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/checking-ssh-authentication-in-a-script/m-p/3435915#M743952</link>
      <description>I get around this issue by looking in the authorized_keys file.  Before performing the ssh command, I execute the following:&lt;BR /&gt;&lt;BR /&gt;grep root@&lt;HOSTNAME&gt; /.ssh/authorized_keys&lt;BR /&gt;&lt;BR /&gt;That does not quarantee that the authorized key will be up to date, but it's the closest I could come up with.  If you come across a better solution, please let me know!&lt;/HOSTNAME&gt;</description>
      <pubDate>Fri, 03 Dec 2004 14:07:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/checking-ssh-authentication-in-a-script/m-p/3435915#M743952</guid>
      <dc:creator>Charlie Rubeor</dc:creator>
      <dc:date>2004-12-03T14:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: Checking ssh authentication in a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/checking-ssh-authentication-in-a-script/m-p/3435916#M743953</link>
      <description>In this case you will need to use expect tool. What this tool does is lloks at "prompts" and keys in things that you want.&lt;BR /&gt;&lt;BR /&gt;There docs about this tool and easy to to understand.&lt;BR /&gt;&lt;BR /&gt;Anil</description>
      <pubDate>Fri, 03 Dec 2004 14:22:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/checking-ssh-authentication-in-a-script/m-p/3435916#M743953</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2004-12-03T14:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: Checking ssh authentication in a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/checking-ssh-authentication-in-a-script/m-p/3435917#M743954</link>
      <description>Tony,&lt;BR /&gt;&lt;BR /&gt;You could try forcing the options like this&lt;BR /&gt;&lt;BR /&gt;ssh -o "PreferredAuthentications publickey" -o "StrictHostKeyChecking no" $i "your command"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Fri, 03 Dec 2004 22:42:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/checking-ssh-authentication-in-a-script/m-p/3435917#M743954</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2004-12-03T22:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: Checking ssh authentication in a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/checking-ssh-authentication-in-a-script/m-p/3435918#M743955</link>
      <description>Sridhar, this was *very* helpfull - I had always tried with passwordauthentication no, but without success.&lt;BR /&gt;Thanks a lot to You :)</description>
      <pubDate>Sat, 04 Dec 2004 05:03:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/checking-ssh-authentication-in-a-script/m-p/3435918#M743955</guid>
      <dc:creator>Florian Heigl (new acc)</dc:creator>
      <dc:date>2004-12-04T05:03:07Z</dc:date>
    </item>
    <item>
      <title>Re: Checking ssh authentication in a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/checking-ssh-authentication-in-a-script/m-p/3435919#M743956</link>
      <description>Thankyou all. Sridhar - your suggestion worked perfectly.</description>
      <pubDate>Mon, 06 Dec 2004 03:16:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/checking-ssh-authentication-in-a-script/m-p/3435919#M743956</guid>
      <dc:creator>Tony Walker_2</dc:creator>
      <dc:date>2004-12-06T03:16:10Z</dc:date>
    </item>
  </channel>
</rss>

