home Mail List
Info
Info
Meetings
Goals
Upcoming
Projects
FAQ
Security
Links

[Date Prev][Date Next] [Chronological] [Thread] [Top]

[NMLUG] a way to "fake" interaction



* 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



Please send sugestions and comments to webmaster@nmlug.org.
Valid XHTML 1.1! Valid CSS! Powered by Debian Powered by Apache