Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
RESOLUTION: socket: Address family not supported by protocol
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Krigare
Tux's lil' helper
Tux's lil' helper


Joined: 12 Nov 2003
Posts: 92
Location: ::1

PostPosted: Thu Jan 22, 2004 7:31 pm    Post subject: RESOLUTION: socket: Address family not supported by protocol Reply with quote

Your Problem:
# ssh <somewhere>
socket: Address family not supported by protocol
user@domain's password:

Why this occur:
When SSH tries to connect to a server using an unsupported protocol, this happends. Those protocols are either ipv4 or ipv6, if you dont have support for one of these in your kernel, which is usually ipv6, ssh will output this error. That is because when ssh is resolving the hostname, it will try to connect using Ipv6 first, if ipv6 isn't there then ' socket: Address family not supported by protocol' will be printed to stdout.

How to fix:

Change your config file, in most cases /etc/ssh/ssh_config to have
AddressFamily inet instead of AddressFamily any.
Note that 'any' is the default value for this option.
_________________
Together we are strong.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum