Hi,
>Hi,
>
>I'm having problems connecting to a lsh-1.0.5 server with a 1.0.1 client.
>Every time I try to connect it gives me:
>
>[timshel@pippin pts/5 timshel]$ lshc -p 2223 localhost
>do_lsh_lookup: Invalid ssh-dss key.
>[timshel@pippin pts/5 timshel]$
>
>I've attached output from the same with --debug ...
>
>Thanks,
>
>Timshel
did you generate your keys on the 1.0.5 server ?
there's a bug in the 1.0.4 and 1.0.5 versions of lsh dsa keys generation.
here's a fix:
file dsa_keygen.c; line (about) 235, replace:
if (mpz_cmp_ui(t, 1))
{
fatal("q doesn't divide p-1 !\n");
goto done;
}
mpz_set(t, q);
mpz_sub_ui(t, t, 2);
bignum_random(x, r, t);
by:
if (mpz_cmp_ui(t, 1))
{
fatal("q doesn't divide p-1 !\n");
goto done;
}
dsa_find_generator(g, r, p, q);
mpz_set(t, q);
mpz_sub_ui(t, t, 2);
bignum_random(x, r, t);
hope this helps,
- Jean-Pierre.