could not read dsa key.

Sunil K. Vallamkonda sunil at redback.com
Thu Feb 1 06:20:51 EST 2001


I am experiencing following problem.
I had sent an email earlier but did not
get any response on the problem.

Problem:
	Could not load host key: ssh_host_dsa_key: Bad file descriptor

The file exists, permissions are okay, etc.

(from my last email..)
Debugging on this, I see:

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 ?

Any suggestions ?


Thank you.

Sunil.







More information about the openssh-unix-dev mailing list