Re: [Ssh-sftp-perl-users] Slow connections with ssh key but quick with password
Brought to you by:
dbrobins
From: Bryan B. <br...@bu...> - 2006-02-24 18:04:40
|
> When i do strace on the program it get stuck there > > 5822 open("/dev/random", O_RDONLY|O_LARGEFILE) =3D 4 > 5822 ioctl(4, SNDCTL_TMR_TIMEBASE or TCGETS, > 0xbfbdf468) =3D -1 EINVAL (Invalid argument) > 5822 _llseek(4, 0, [0], SEEK_CUR) =3D 0 > 5822 fstat64(4, {st_mode=3DS_IFCHR|0666, > st_rdev=3Dmakedev(1, 8), ...}) =3D 0 > 5822 fcntl64(4, F_SETFD, FD_CLOEXEC) =3D 0 > 5822 read(4, "$\327\364\v\342", 21) =3D 5 > 5822 read(4, "\20\235@\1\310W\2668", 16) =3D 8 > 5822 read(4, "\2203\356\254\354]\266 ", 8) =3D 8 > 5822 close(4) =3D 0 > > around the 2nd and 3rd read instruction. > > --- Miky J <mi...@ya...> a =E9crit : 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 |