<p>Wanting to use a script to install ssh keys to a bazillion machines. :-)<br>
Yes doesn&#39;t play well with ssh. <br>
Got it down to a script and ctl-v. Another 100 to go...</p>
<div class="gmail_quote">On Oct 10, 2011 4:48 PM, &quot;Dennis Ruzeski&quot; &lt;<a href="mailto:denniruz@gmail.com">denniruz@gmail.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">
Expect is what you want-- ssh won&#39;t take input from redirected stdin.<br> <br>Here&#39;s some things that won&#39;t work-<br><br>$echo &#39;password&#39; |ssh username@hostname<br><br>Variations on a script-<br>#!/bin/bash<br>


ssh username@host &lt;&lt; EOF<br>password<br>EOF<br><br>While expect will do this, a cleaner and more secure way to set this up is with shared key authentication.<br><br>--Dennis<br><br><br><br><br><br><div class="gmail_quote">


On Mon, Oct 10, 2011 at 4:29 PM, chip <span dir="ltr">&lt;<a href="mailto:chip.gwyn@gmail.com" target="_blank">chip.gwyn@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


Possibly &#39;yes&#39; ?<br>
<br>
-&gt; which yes<br>
/usr/bin/yes<br>
<br>
NAME<br>
       yes - output a string repeatedly until killed<br>
<br>
SYNOPSIS<br>
       yes [STRING]...<br>
       yes OPTION<br>
<br>
DESCRIPTION<br>
       Repeatedly output a line with all specified STRING(s), or ‘y’<br>
<div><div></div><div><br>
On Mon, Oct 10, 2011 at 4:09 PM, Jim Kinney &lt;<a href="mailto:jim.kinney@gmail.com" target="_blank">jim.kinney@gmail.com</a>&gt; wrote:<br>
&gt; Looking for a command name. Google is not my friend<br>
&gt;<br>
&gt; Usage: &lt;command&gt; &#39;string&#39;<br>
&gt; It echos string to any avail stdin. Really useful to toss a password into<br>
&gt; for a long series of logins.<br>
&gt; Scanning /usr/bin not helping.<br>
&gt;<br>
&gt; For I on $(seq 1 254) do<br>
&gt; &lt;command&gt; &#39;mypass&#39; ssh me@host rpm -qa|grep foo<br>
&gt; Done<br>
&gt;<br>
</div></div><div>&gt; _______________________________________________<br>
&gt; Ale mailing list<br>
&gt; <a href="mailto:Ale@ale.org" target="_blank">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>
&gt;<br>
&gt;<br>
<br>
<br>
<br>
</div><font color="#888888">--<br>
Just my $.02, your mileage may vary,  batteries not included, etc....<br>
</font><div><div></div><div><br>
_______________________________________________<br>
Ale mailing list<br>
<a href="mailto:Ale@ale.org" target="_blank">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>
</div></div></blockquote></div><br>
<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>
<br></blockquote></div>