Subject: Re: kernel option for "socket: Protocol not supported"
To: George Georgalis <george@galis.org>
From: Jonathan Stone <jonathan@Pescadero.dsg.stanford.edu>
List: tech-kern
Date: 02/21/2006 11:54:38
In message <20060221192642.GD18891@sta.duo>,
"George Georgalis" writes:

>I'm pretty sure one of these disabled kernel options below is
>causing the warning:
>
># ssh root@localhost
>socket: Protocol not supported

Are you sure that your ssh application isn't merely using a rather
dumb way to tell you that it tried IPv6 connectivity to your target
before IPv4, that your kernel lacks IPv6 support, and so the socket()
call failed?  

In other words, this error message is considered 'normal' given your
setup.  If you remove the

	::1		localhost

line from /etc/hosts, that should silence this specific problem.  Or
retrain yourself to use 127.0.0.1 instead of localhost,

Or perhaps, you're having other SSH problems, and you're trying to use
``ssh localhost' to diagnose them? If so, what are they?

(See also other recent threads over the past 2 days for where I
propose /etc/rc.conf hooks to disable IPv6 configuration, for reasons
not-unlike your case.)