>> ssh works. Connection from the same client to a third gentoo box >> running a webserver works. > > KISS may be at work here. > > go and delete the ".ssh/known_hosts" > files just to be certain it not something > really simple....
That file just contains the cached ssh host keys - nothing to do with a webserver.