<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's done.<br>
Expect was my third choice.</p>
<div class="gmail_quote">On Oct 10, 2011 8:19 PM, "Geoffrey Myers" <<a href="mailto:lists@serioustechnology.com">lists@serioustechnology.com</a>> 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>
> Wanting to use a script to install ssh keys to a bazillion machines. :-)<br>
> Yes doesn't play well with ssh.<br>
> Got it down to a script and ctl-v. Another 100 to go...<br>
><br>
> On Oct 10, 2011 4:48 PM, "Dennis Ruzeski" <<a href="mailto:denniruz@gmail.com">denniruz@gmail.com</a><br>
> <mailto:<a href="mailto:denniruz@gmail.com">denniruz@gmail.com</a>>> wrote:<br>
><br>
> Expect is what you want-- ssh won't take input from redirected stdin.<br>
><br>
> Here's some things that won't work-<br>
><br>
> $echo 'password' |ssh username@hostname<br>
><br>
> Variations on a script-<br>
> #!/bin/bash<br>
> ssh username@host << EOF<br>
> password<br>
> EOF<br>
><br>
> While expect will do this, a cleaner and more secure way to set this<br>
> up is with shared key authentication.<br>
><br>
> --Dennis<br>
><br>
><br>
><br>
><br>
><br>
> On Mon, Oct 10, 2011 at 4:29 PM, chip <<a href="mailto:chip.gwyn@gmail.com">chip.gwyn@gmail.com</a><br>
> <mailto:<a href="mailto:chip.gwyn@gmail.com">chip.gwyn@gmail.com</a>>> wrote:<br>
><br>
> Possibly 'yes' ?<br>
><br>
> -> 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>
><br>
> On Mon, Oct 10, 2011 at 4:09 PM, Jim Kinney<br>
> <<a href="mailto:jim.kinney@gmail.com">jim.kinney@gmail.com</a> <mailto:<a href="mailto:jim.kinney@gmail.com">jim.kinney@gmail.com</a>>> wrote:<br>
> > Looking for a command name. Google is not my friend<br>
> ><br>
> > Usage: <command> 'string'<br>
> > It echos string to any avail stdin. Really useful to toss a<br>
> password into<br>
> > for a long series of logins.<br>
> > Scanning /usr/bin not helping.<br>
> ><br>
> > For I on $(seq 1 254) do<br>
> > <command> 'mypass' ssh me@host rpm -qa|grep foo<br>
> > Done<br>
> ><br>
> > _______________________________________________<br>
> > Ale mailing list<br>
> > <a href="mailto:Ale@ale.org">Ale@ale.org</a> <mailto:<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>
> ><br>
><br>
><br>
><br>
> --<br>
> Just my $.02, your mileage may vary, batteries not included,<br>
> etc....<br>
><br>
> _______________________________________________<br>
> Ale mailing list<br>
> <a href="mailto:Ale@ale.org">Ale@ale.org</a> <mailto:<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>
><br>
><br>
> _______________________________________________<br>
> Ale mailing list<br>
> <a href="mailto:Ale@ale.org">Ale@ale.org</a> <mailto:<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>
><br>
> ------------------------------------------------------------------------<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>
<br>
--<br>
Until later, Geoffrey<br>
<br>
"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."<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>