[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] Command name
- Subject: [ale] Command name
- From: jim.kinney at gmail.com (Jim Kinney)
- Date: Mon, 10 Oct 2011 16:55:51 -0400
- In-reply-to: <CAAUyTtjR3TqtPA0hTdgx9_-j1CDN=YzihGoi6URFpLc8ahWHYw@mail.gmail.com>
- References: <CAEo=5PwZur_oXD3--1HevZnZxnuqcZb0P2YwD5XFOX_80DMUOA@mail.gmail.com> <CABGzhdsDss5jwpvwS+HuKSAHY608EpoBnAbp8nBtB-ug7KewnA@mail.gmail.com> <CAAUyTtjR3TqtPA0hTdgx9_-j1CDN=YzihGoi6URFpLc8ahWHYw@mail.gmail.com>
Wanting to use a script to install ssh keys to a bazillion machines. :-)
Yes doesn't play well with ssh.
Got it down to a script and ctl-v. Another 100 to go...
On Oct 10, 2011 4:48 PM, "Dennis Ruzeski" <denniruz at gmail.com> wrote:
> Expect is what you want-- ssh won't take input from redirected stdin.
>
> Here's some things that won't work-
>
> $echo 'password' |ssh username at hostname
>
> Variations on a script-
> #!/bin/bash
> ssh username at host << EOF
> password
> EOF
>
> While expect will do this, a cleaner and more secure way to set this up is
> with shared key authentication.
>
> --Dennis
>
>
>
>
>
> On Mon, Oct 10, 2011 at 4:29 PM, chip <chip.gwyn at gmail.com> wrote:
>
>> Possibly 'yes' ?
>>
>> -> which yes
>> /usr/bin/yes
>>
>> NAME
>> yes - output a string repeatedly until killed
>>
>> SYNOPSIS
>> yes [STRING]...
>> yes OPTION
>>
>> DESCRIPTION
>> Repeatedly output a line with all specified STRING(s), or ?y?
>>
>> On Mon, Oct 10, 2011 at 4:09 PM, Jim Kinney <jim.kinney at gmail.com> wrote:
>> > Looking for a command name. Google is not my friend
>> >
>> > Usage: <command> 'string'
>> > It echos string to any avail stdin. Really useful to toss a password
>> into
>> > for a long series of logins.
>> > Scanning /usr/bin not helping.
>> >
>> > For I on $(seq 1 254) do
>> > <command> 'mypass' ssh me at host rpm -qa|grep foo
>> > Done
>> >
>> > _______________________________________________
>> > Ale mailing list
>> > Ale at ale.org
>> > http://mail.ale.org/mailman/listinfo/ale
>> > See JOBS, ANNOUNCE and SCHOOLS lists at
>> > http://mail.ale.org/mailman/listinfo
>> >
>> >
>>
>>
>>
>> --
>> Just my $.02, your mileage may vary, batteries not included, etc....
>>
>> _______________________________________________
>> Ale mailing list
>> Ale at ale.org
>> http://mail.ale.org/mailman/listinfo/ale
>> See JOBS, ANNOUNCE and SCHOOLS lists at
>> http://mail.ale.org/mailman/listinfo
>>
>
>
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.ale.org/pipermail/ale/attachments/20111010/7810ee58/attachment.html