Krigare Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/19663451423fe29e10ee9a0.gif)
Joined: 12 Nov 2003 Posts: 92 Location: ::1
|
Posted: Thu Jan 22, 2004 7:31 pm Post subject: RESOLUTION: socket: Address family not supported by protocol |
|
|
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. |
|