<p>The right tool is a signed rpm with my key as the package and an auto update later from the private repo and it&#39;s done.<br>
Expect was my third choice.</p>
<div class="gmail_quote">On Oct 10, 2011 8:19 PM, &quot;Geoffrey Myers&quot; &lt;<a href="mailto:lists@serioustechnology.com">lists@serioustechnology.com</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Sounds to me that expect would have been the right tool.<br>
<br>
Jim Kinney wrote:<br>
&gt; Wanting to use a script to install ssh keys to a bazillion machines. :-)<br>
&gt; Yes doesn&#39;t play well with ssh.<br>
&gt; Got it down to a script and ctl-v. Another 100 to go...<br>
&gt;<br>
&gt; On Oct 10, 2011 4:48 PM, &quot;Dennis Ruzeski&quot; &lt;<a href="mailto:denniruz@gmail.com">denniruz@gmail.com</a><br>
&gt; &lt;mailto:<a href="mailto:denniruz@gmail.com">denniruz@gmail.com</a>&gt;&gt; wrote:<br>
&gt;<br>
&gt;     Expect is what you want-- ssh won&#39;t take input from redirected stdin.<br>
&gt;<br>
&gt;     Here&#39;s some things that won&#39;t work-<br>
&gt;<br>
&gt;     $echo &#39;password&#39; |ssh username@hostname<br>
&gt;<br>
&gt;     Variations on a script-<br>
&gt;     #!/bin/bash<br>
&gt;     ssh username@host &lt;&lt; EOF<br>
&gt;     password<br>
&gt;     EOF<br>
&gt;<br>
&gt;     While expect will do this, a cleaner and more secure way to set this<br>
&gt;     up is with shared key authentication.<br>
&gt;<br>
&gt;     --Dennis<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;     On Mon, Oct 10, 2011 at 4:29 PM, chip &lt;<a href="mailto:chip.gwyn@gmail.com">chip.gwyn@gmail.com</a><br>
&gt;     &lt;mailto:<a href="mailto:chip.gwyn@gmail.com">chip.gwyn@gmail.com</a>&gt;&gt; wrote:<br>
&gt;<br>
&gt;         Possibly &#39;yes&#39; ?<br>
&gt;<br>
&gt;         -&gt; which yes<br>
&gt;         /usr/bin/yes<br>
&gt;<br>
&gt;         NAME<br>
&gt;               yes - output a string repeatedly until killed<br>
&gt;<br>
&gt;         SYNOPSIS<br>
&gt;               yes [STRING]...<br>
&gt;               yes OPTION<br>
&gt;<br>
&gt;         DESCRIPTION<br>
&gt;               Repeatedly output a line with all specified STRING(s), or ‘y’<br>
&gt;<br>
&gt;         On Mon, Oct 10, 2011 at 4:09 PM, Jim Kinney<br>
&gt;         &lt;<a href="mailto:jim.kinney@gmail.com">jim.kinney@gmail.com</a> &lt;mailto:<a href="mailto:jim.kinney@gmail.com">jim.kinney@gmail.com</a>&gt;&gt; wrote:<br>
&gt;          &gt; Looking for a command name. Google is not my friend<br>
&gt;          &gt;<br>
&gt;          &gt; Usage: &lt;command&gt; &#39;string&#39;<br>
&gt;          &gt; It echos string to any avail stdin. Really useful to toss a<br>
&gt;         password into<br>
&gt;          &gt; for a long series of logins.<br>
&gt;          &gt; Scanning /usr/bin not helping.<br>
&gt;          &gt;<br>
&gt;          &gt; For I on $(seq 1 254) do<br>
&gt;          &gt; &lt;command&gt; &#39;mypass&#39; ssh me@host rpm -qa|grep foo<br>
&gt;          &gt; Done<br>
&gt;          &gt;<br>
&gt;          &gt; _______________________________________________<br>
&gt;          &gt; Ale mailing list<br>
&gt;          &gt; <a href="mailto:Ale@ale.org">Ale@ale.org</a> &lt;mailto:<a href="mailto:Ale@ale.org">Ale@ale.org</a>&gt;<br>
&gt;          &gt; <a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
&gt;          &gt; See JOBS, ANNOUNCE and SCHOOLS lists at<br>
&gt;          &gt; <a href="http://mail.ale.org/mailman/listinfo" target="_blank">http://mail.ale.org/mailman/listinfo</a><br>
&gt;          &gt;<br>
&gt;          &gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;         --<br>
&gt;         Just my $.02, your mileage may vary,  batteries not included,<br>
&gt;         etc....<br>
&gt;<br>
&gt;         _______________________________________________<br>
&gt;         Ale mailing list<br>
&gt;         <a href="mailto:Ale@ale.org">Ale@ale.org</a> &lt;mailto:<a href="mailto:Ale@ale.org">Ale@ale.org</a>&gt;<br>
&gt;         <a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
&gt;         See JOBS, ANNOUNCE and SCHOOLS lists at<br>
&gt;         <a href="http://mail.ale.org/mailman/listinfo" target="_blank">http://mail.ale.org/mailman/listinfo</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;     _______________________________________________<br>
&gt;     Ale mailing list<br>
&gt;     <a href="mailto:Ale@ale.org">Ale@ale.org</a> &lt;mailto:<a href="mailto:Ale@ale.org">Ale@ale.org</a>&gt;<br>
&gt;     <a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
&gt;     See JOBS, ANNOUNCE and SCHOOLS lists at<br>
&gt;     <a href="http://mail.ale.org/mailman/listinfo" target="_blank">http://mail.ale.org/mailman/listinfo</a><br>
&gt;<br>
&gt;<br>
&gt; ------------------------------------------------------------------------<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Ale mailing list<br>
&gt; <a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
&gt; <a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
&gt; See JOBS, ANNOUNCE and SCHOOLS lists at<br>
&gt; <a href="http://mail.ale.org/mailman/listinfo" target="_blank">http://mail.ale.org/mailman/listinfo</a><br>
<br>
<br>
--<br>
Until later, Geoffrey<br>
<br>
&quot;I predict future happiness for America if they can prevent<br>
the government from wasting the labors of the people under<br>
the pretense of taking care of them.&quot;<br>
- Thomas Jefferson<br>
_______________________________________________<br>
Ale mailing list<br>
<a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
<a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
See JOBS, ANNOUNCE and SCHOOLS lists at<br>
<a href="http://mail.ale.org/mailman/listinfo" target="_blank">http://mail.ale.org/mailman/listinfo</a><br>
</blockquote></div>