[ale] Command name

Dennis Ruzeski denniruz at gmail.com
Mon Oct 10 16:43:50 EDT 2011


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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.ale.org/pipermail/ale/attachments/20111010/88baf74a/attachment.html 


More information about the Ale mailing list