Re: [Ssh-sftp-perl-users] Slow connections with ssh key but quick with password SOLVED
Brought to you by:
dbrobins
From: Miky J <mi...@ya...> - 2006-02-27 09:14:54
|
These commands seem to have solved the problem > # mv /dev/random /dev/random.bak > # cp /dev/urandom /dev/random Thanx again --- Bryan Bueter <br...@bu...> a écrit : > > When i do strace on the program it get stuck there > > > > 5822 open("/dev/random", O_RDONLY|O_LARGEFILE) = > 4 > > 5822 ioctl(4, SNDCTL_TMR_TIMEBASE or TCGETS, > > 0xbfbdf468) = -1 EINVAL (Invalid argument) > > 5822 _llseek(4, 0, [0], SEEK_CUR) = 0 > > 5822 fstat64(4, {st_mode=S_IFCHR|0666, > > st_rdev=makedev(1, 8), ...}) = 0 > > 5822 fcntl64(4, F_SETFD, FD_CLOEXEC) = 0 > > 5822 read(4, "$\327\364\v\342", 21) = 5 > > 5822 read(4, "\20\235@\1\310W\2668", 16) = 8 > > 5822 read(4, "\2203\356\254\354]\266 ", 8) = 8 > > 5822 close(4) = 0 > > > > around the 2nd and 3rd read instruction. > > > > --- Miky J <mi...@ya...> a écrit : > > Looks like you are quickly running out of entropy. > Check for patches on > your OS that fix this, or do something like this: > > # mv /dev/random /dev/random.bak > # cp /dev/urandom /dev/random > > Though, expect that your not really getting random > numbers after making > this change. The better solution would be to fix > any os problems. You > might check for good entropy by doing this: > > # cat -uv /dev/random > > If you see stuff come by pretty fast, then this is > not the problem at all. > If it hangs after printing a few lines, then you > certainly have issues > generating enough entropy. > > Good luck. > > Bryan > http://www.sourceforge.net/projects/rover > > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a > groundbreaking scripting language > that extends applications into web and mobile media. > Attend the live webcast > and join the prime developer group breaking into > this new coding territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 > _______________________________________________ > Ssh-sftp-perl-users mailing list > Ssh...@li... > https://lists.sourceforge.net/lists/listinfo/ssh-sftp-perl-users > ___________________________________________________________________________ Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international. Téléchargez sur http://fr.messenger.yahoo.com |