Patch to discourage unencrypted key generation
Alex Bligh
alex at alex.org.uk
Sat Jun 1 02:23:36 EST 2013
On 31 May 2013, at 16:46, John Hawkinson wrote:
> Alex Bligh <alex at alex.org.uk> wrote on Fri, 31 May 2013
> at 16:41:53 +0100 in <25BCBFD2-791A-4B1E-9182-A87FD75B8BAD at alex.org.uk>:
>
>> Would isatty(0) be reasonable to determine whether prompting should be used?
>
> I don't think so. This just makes it hard to debug scripts and hard to
> write them.
>
> This kind of "trickery" causes more trouble than it solves.
To be honest I am doubtful about the value of doing anything other than modifying
the manpage.
However, having written such scripts before, I can't see why anyone writing
a script would be using piping stuff to prompts, when you can pass -N ""
as a parameter and get no prompt.
--
Alex Bligh
More information about the openssh-unix-dev
mailing list