If you use -d, chances are it probably doesn't work correctly either,  
but by then its already put itself into the background and so you see  
it return.

What does it '/usr/sbin/sshd' pause on when you run it inside strace?  
I'm thinking it may be that its pausing because the system has run out  
of entropy to give suitable random data for /dev/random. You could try  
"stirring in" some entropy by doing something like moving the mouse a  
lot, or doing a lot of disk IO on the host; the host kernel gathers  
entropy from such events.

Ideally though, you would have a hardware random number generator  
(RNG) on your motherboard, which all(?) modern systems will have.  
Ensure your host has support for this in the kernel (or loaded via  
module).

I'm not sure if the guest will source its /dev/random from the hosts / 
dev/random or not.

On 04/06/2008, at 9:31 PM, Benedict Verheyen wrote:
> Hi,
>
>
> i have a problem with running ssh on an etch UML system.
> I think this problem only started since Debian had the openssl bug.
>
> When i try to run sshd using /etc/init.d/ssh start, it doesn't run
> anymore. It prints the starting message but that's all. No sshd  
> process
> running.
>
> When i try the command as specified in the /etc/init.d/ssh script,
> it doesn't run either:
> start-stop-daemon --start --quiet --pidfile /var/run/sshd.pid --exec
> /usr/sbin/sshd --
>
> However, when i add the -d switch on the above line, it works.
> /usr/sbin/sshd -d & works, /usr/sbin/sshd & doesn't work either.
>
> Logging revealed this:
>
> sshd[2729]: fatal: Couldn't obtain random bytes (error 604389476)
>
> /dev/random and /dev/urandom are present however
>
> Any ideas?
>
> Regards,
> Benedict
>
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> User-mode-linux-user mailing list
> User-mode-linux-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user
>

-- 
Cameron Kerr <[EMAIL PROTECTED]>
Teaching Fellow, Computer Science, University of Otago
NOTE: I only check my e-mail at 11am each day, to improve time  
management.


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user

Reply via email to