load host dsa key error:
Sunil K. Vallamkonda
sunil at redback.com
Tue Jan 30 06:22:02 EST 2001
poking futher into this, I find error while reading private
host dsa key - I see decode error:
EVP_DecodeFinal(...)
calls EVP_DecodeBlock(..) which returns error.
And the function call tree is:
load_private_key_autodetect (...)
at sshd.c:482
load_private_key (...)
at authfile.c:538
load_private_key_ssh2 (...)
at authfile.c:451
PEM_read_PrivateKey (...)
at pem_all.c:200
PEM_ASN1_read (d2i=0x6eb40 <d2i_PrivateKey>,
name=0x5fb34 "ANY PRIVATE KEY", fp=0x105a04, x=0x0, cb=0, u=0x1106)
at pem_lib.c:180
PEM_ASN1_read_bio (d2i=0x6eb40 <d2i_PrivateKey>,
name=0x5fb34 "ANY PRIVATE KEY", bp=0x117300, x=0x0, cb=0, u=0x1106)
at pem_lib.c:238
PEM_read_bio (...)
at pem_lib.c:774
DecodeFinal (...)
at encode.c:395
ques: Is there a bug in ssh-keygen: generation
of private host dsa key - which could be causing a read/decode
error ?
Thank you
On Fri, 26 Jan 2001, Sunil K. Vallamkonda wrote:
>
> I get error:
> %SSHD-3-ERROR: Could not load host key: /tmp/ssh_host_dsa_key: Bad file
> descriptor
> Jan 26 23:58:52: %SSHD-6-INFO: Disabling protocol version 2. Could not
> load host key
>
> Everything looks okay, the file exists, (it was generated using command:
> ssh-keygen -d -f ssh_host_dsa_key -N '')
> I also do 'ls' and find the file exists with permissions:
>
> -rw------- 1 root group 668 Jan 26 15:53 ssh_host_dsa_key
> -rw-r--r-- 1 root group 601 Jan 26 15:53 ssh_host_dsa_key.pub
>
> version i use:
> OpenSSH_2.3.1p1
> on NetBSD1.4.2
>
>
> Is this a bug ? Any suggestions ?
>
> Thank you.
>
>
>
>
>
More information about the openssh-unix-dev
mailing list