









|
[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
[NMLUG] a way to "fake" interaction
On that note, I've been successful with programs that have no -N equivelent,
printing what the program wants to STDIN.
On Thu, Apr 01, 2004 at 05:09:37PM -0700, Matthew Bohnsack wrote:
> * Jody Harris <havoc@harrisdev.com> [Apr 01, 2004 at 05:00:00PM MST]:
> > Is there a tool I can use to respond to prompts? I need to generate
> > ssh key files on the fly, but there is no way to tell (at least not
> > that I can find) ssh-keygen to not prompt for passphrase, just accept
> > NULL.
> >
> > If there is a tool that I could have "hit the enter key" for me when
> > prompted, I'd be set.
>
> You could use expect[1] to do this, but I'd just make ssh-keygen accept
> null pass phrases:
>
> ssh-keygen -N ""
>
> [1] http://expect.nist.gov/
>
> -Matt
> --
> Matt Bohnsack <bohnsack@bohnsack.com>
> http://bohnsack.com/
> Albuquerque New Mexico, - USA
> _______________________________________________
> NMLUG mailing list
> NMLUG@nmlug.org
> http://www.nmlug.org/mailman/listinfo/nmlug
--
James Hamilton
Southwest Cyberport
http://www.swcp.com
505-232-7992
|
|