Proposed patch: ssh-keygen allows writing to stdout for moduli generation

Darren Tucker dtucker at zip.com.au
Fri Mar 2 10:09:09 EST 2007


Christian Pfaffel-Janser wrote:
> I propose the following patch to ssh-keygen.c for openssh version 4.5.
> It allows to redirect output of the moduli operations to stdout, to do
> something like e.g.:
> 
> $ ssh-keygen -G - -b 2048 | ssh-keygen -T - -f - >moduli

If your platform has it you can use /dev/stdout for this:

ssh-keygen -b 2048 -G /dev/stdout | ssh-keygen -T - -f - >moduli

-- 
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4  37C9 C982 80C7 8FF4 FA69
     Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.



More information about the openssh-unix-dev mailing list