Discussion:
no suitable primes?
Dclaw
2002-07-27 19:02:36 UTC
Permalink
Hey guys,

got a quick question...
I am getting an error:
sshd[6645]: WARNING: no suitable primes in /etc/primes

this occurs every time I try to login via ssh
I just recently upgraded to -current as I always do, once every 2-3 weeks...
it is current as of July 24th 14:19
I read through the upgrade mini-faq, and have done absolutely everything,
the only new thing I had to do was remove atrun, which I did according to
directions... and the only other thing I changed was I am using the default
sshd_config file, with only permitrootlogin changed to yes. otherwise, it is
unaltered. I noticed that /etc/primes is regenerated every time sshd is run,
I have attempted to remove it and have it regenerated, and the same error
occurs

If anyone has any suggestions as to why this is occurring.... please do let
me know.

Thanks,

Mike Dudas

_________________________________________________
don't wanna be alone...? grab a balled up tshirt for company...
Dclaw
2002-07-27 19:52:35 UTC
Permalink
one more thing...
this all started last night when I was trying to login remotely from a lan
party...
it would just say invalid password for my correct password, on every user
account (that I had the passwords for anyway)
I wasn't able to check it at all till I got home, just before I wrote up the
first email.... and that's when I noticed the error with /etc/primes... and
also the fact that it no longer worked at all... and there is also no
entries in the logs for any of the 10-20 times I tried to login last night
when I was getting the invalid password error...

Mike
Woodchuck
2002-07-28 06:55:28 UTC
Permalink
Post by Dclaw
Hey guys,
got a quick question...
sshd[6645]: WARNING: no suitable primes in /etc/primes
Alas. sshd seems to look for two files, /etc/moduli and /etc/primes
in that order. /etc/primes is "old". Later, the error message
you are seeing really means "no suitable primes in the file I opened
and whose name I have forgotten". [This is a bug which should be
fixed, the code is in /usr/src/usr.bin/ssh/dh.c, IIRC.]

Anyway, my *feeling* is that you can play around with /etc/primes
all day, and if you have /etc/moduli on your system (and you should),
nothing will ever change. My amateurish advice is to rm /etc/primes
and copy the distribution /usr/src/etc/moduli to /etc/moduli, permissions
644, and try sshd again.

Dave
--
"Unlike drug users, gun offenders do not have an
addiction that drives their behavior."
--- B. A. Buckles, Director, BATF
Dclaw
2002-07-28 23:39:32 UTC
Permalink
ok, I tried copying moduli from /usr/src/etc/moduli... and set the
permissions...
now... when I try to login, it prompts for username, I put in any username,
and the session dies (I'm using putty for this)

no error message on the computer at all...

Dclaw
2002-07-28 23:36:11 UTC
Permalink
You don't seems to have a current ssh(d).
The thing is, I am running -current

I never had a problem with it till friday... which is 2 dayas after the
last time I updated and rebuilt to -current

Mike
Continue reading on narkive:
Loading...