Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

SSH failing: PRNG is not seeded, [moved to hardware/udev]

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
7 posts • Page 1 of 1
Author
Message
ccowart
n00b
n00b
Posts: 48
Joined: Mon Apr 11, 2005 8:43 am
Location: Berkeley, CA

SSH failing: PRNG is not seeded, [moved to hardware/udev]

  • Quote

Post by ccowart » Fri May 13, 2005 9:39 am

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.
Top
odinbpl
n00b
n00b
Posts: 19
Joined: Sun Nov 24, 2002 1:38 pm
Location: London

  • Quote

Post by odinbpl » Fri May 13, 2005 9:17 pm

I had the same problem. A quick "strace ssh host" revealed /dev/urandom wasn't readable. Doing

Code: Select all

chmod o+r /dev/urandom
as root did the trick.
--
Steven Capper
Top
ccowart
n00b
n00b
Posts: 48
Joined: Mon Apr 11, 2005 8:43 am
Location: Berkeley, CA

  • Quote

Post by ccowart » Sat May 14, 2005 12:25 am

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!
Top
honigsalz
n00b
n00b
User avatar
Posts: 39
Joined: Sun Dec 05, 2004 9:48 pm
Location: vienna, austria
Contact:
Contact honigsalz
Website

  • Quote

Post by honigsalz » Sat May 14, 2005 9:52 am

i couldn't log in to gnome anymore
odinbpl wrote:

Code: Select all

chmod o+r /dev/urandom
solved this for me too!
thanks a lot!
Top
guid0
Guru
Guru
User avatar
Posts: 392
Joined: Sun Jul 06, 2003 8:31 am
Location: The Netherlands / Nederland
Contact:
Contact guid0
Website

  • Quote

Post by guid0 » Sat Jun 25, 2005 7:18 am

fixed my problem with

Code: Select all

chmod 666 /dev/tty
:D
Top
spoofy
n00b
n00b
Posts: 58
Joined: Mon Mar 28, 2005 4:24 pm

  • Quote

Post by spoofy » Mon Aug 08, 2005 7:23 pm

Was there ever a resolution to this? I dont want to have to chmod every time i boot
Top
alex3683
n00b
n00b
User avatar
Posts: 41
Joined: Mon May 23, 2005 6:56 am
Location: Germany, NRW
Contact:
Contact alex3683
Website

  • Quote

Post by alex3683 » Wed Aug 31, 2005 9:55 am

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

Code: Select all

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.
Top
Post Reply

7 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic