ssh-keygen: passphrase.

Markus Friedl Markus.Friedl at informatik.uni-erlangen.de
Fri Jan 12 19:09:20 EST 2001


On Thu, Jan 11, 2001 at 03:18:40PM -0800, Sunil K. Vallamkonda wrote:
> 
> Looking at openSSH INSTALL:
> 
> To generate a host key, run "make host-key". Alternately you can do so
> manually using the following commands:
> 
>     ssh-keygen -b 1024 -f /etc/ssh/ssh_host_key -N ""
>     ssh-keygen -d -f /etc/ssh/ssh_host_dsa_key -N ""
> 
> But when I try latter, I get:
> 
> (gdb) n
> 1  0x35a6 in save_private_key_ssh2 (
>     filename=0xb2d2c "/mydir/ssh_host_dsa_key",
>     _passphrase=0xb90f0 "''", key=0xc0360, comment=0xefbf91b0

_passphrase == "''"

this does not look like an empty passphrase.

perhaps your shell quoting is wrong?


> "user at host")
>     at authfile.c:172
> 
> ^^^^^^^^^
> This means:
> 
> In authfile.c - save_private_key_ssh2(..):
> 
> <clipped>
>     if (len > 0 && len <= 4) {
>         error("passphrase too short: %d bytes", len);
>         errno = 0;
>         return 0;
>     }
> 
> <clipped>
> 
> 
> Any ideas why this check, when INSTALL says passphrase not required ?
> 
> Thx.
> 
> Sunil.
> 
> 





More information about the openssh-unix-dev mailing list