Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
SSH failing: PRNG is not seeded, [moved to hardware/udev]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
ccowart
n00b
n00b


Joined: 11 Apr 2005
Posts: 48
Location: Berkeley, CA

PostPosted: Fri May 13, 2005 9:39 am    Post subject: SSH failing: PRNG is not seeded, [moved to hardware/udev] Reply with quote

I've apparently managed to break a number of things in the blink of an eye...
This evening, I've installed gimp-print, kdeprint, konsole, and kdesu for the purpose of playing around. I'm using Fluxbox as my wm. The kde packages are KDE3.4 (split ebuilds!). I've since unmerged kdesu

I then try to ssh to a remote host, and I get the error "PRNG is not seeded". Hmf. As another aterm has an open ssh connection, I'm a bit miffed. I try restarting urandom. I cat out /dev/random to make sure that there's plenty of stuff. Annoying to say the very least.

So I go to kmail, and it's complaining that my server "claims to support TLS" but doesn't. Hmf. It worked for the minutely mail checks all evening long. This is seeming to be a recurring theme.

I do a revdep-rebuild. Everything is in order. Last ditch effort: try a reboot. Uh oh, can't get an X session - apparently ssh-agent was throwing stuff to STDERR and causing some problems. Tweak my .bashrc. I'm in. But I can't start any terminals! aterm fails. xterm fails. Eterm fails. konsole fails. Yikes.

I have a feeling all of these problems are somehow interrelated -- they popped up at exactly the same time. Has anybody dealth with the PRNG seeding error? What caused it? How did you fix it? I think that will help lead me on the path toward happy computing...


Last edited by ccowart on Sat May 14, 2005 12:26 am; edited 1 time in total
Back to top
View user's profile Send private message
odinbpl
n00b
n00b


Joined: 24 Nov 2002
Posts: 19
Location: London

PostPosted: Fri May 13, 2005 9:17 pm    Post subject: Reply with quote

I had the same problem. A quick "strace ssh host" revealed /dev/urandom wasn't readable. Doing
Code:
chmod o+r /dev/urandom

as root did the trick.
_________________
--
Steven Capper
Back to top
View user's profile Send private message
ccowart
n00b
n00b


Joined: 11 Apr 2005
Posts: 48
Location: Berkeley, CA

PostPosted: Sat May 14, 2005 12:25 am    Post subject: Reply with quote

Yeah. I found that out today. Apparently /dev/null, /dev/urandom, and /dev/random are all changed to root:root 660 upon boot. The udev permissions file looks good. I'm going to repost in the appropriate forum.

Thanks!
Back to top
View user's profile Send private message
honigsalz
n00b
n00b


Joined: 05 Dec 2004
Posts: 39
Location: vienna, austria

PostPosted: Sat May 14, 2005 9:52 am    Post subject: Reply with quote

i couldn't log in to gnome anymore

odinbpl wrote:

Code:
chmod o+r /dev/urandom



solved this for me too!
thanks a lot!
Back to top
View user's profile Send private message
guid0
Guru
Guru


Joined: 06 Jul 2003
Posts: 377
Location: The Netherlands / Nederland

PostPosted: Sat Jun 25, 2005 7:18 am    Post subject: Reply with quote

fixed my problem with
Code:
chmod 666 /dev/tty
:D
Back to top
View user's profile Send private message
spoofy
n00b
n00b


Joined: 28 Mar 2005
Posts: 58

PostPosted: Mon Aug 08, 2005 7:23 pm    Post subject: Reply with quote

Was there ever a resolution to this? I dont want to have to chmod every time i boot
Back to top
View user's profile Send private message
alex3683
n00b
n00b


Joined: 23 May 2005
Posts: 41
Location: Germany, NRW

PostPosted: Wed Aug 31, 2005 9:55 am    Post subject: Reply with quote

Just add this to your /etc/udev/rules.d/50-udev.rules:
Code:

KERNEL="null",           NAME="%k"      MODE="0666"
KERNEL="random",         NAME="%k"      MODE="0666"
KERNEL="zero",           NAME="%k"      MODE="0666"
KERNEL="ptmx",           NAME="%k"      MODE="0666"
KERNEL="tty",            NAME="%k"      MODE="0666"
KERNEL="urandom",        NAME="%k"      MODE="0666"


All those devices made problems with logins in terms and with ssh.
After you've done the above udev while set these permissions automaticaly every time you boot.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum