Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

RESOLUTION: socket: Address family not supported by protocol

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
1 post • Page 1 of 1
Author
Message
Krigare
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 92
Joined: Wed Nov 12, 2003 5:56 pm
Location: ::1

RESOLUTION: socket: Address family not supported by protocol

  • Quote

Post by Krigare » Thu Jan 22, 2004 7:31 pm

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.
Top
Post Reply
1 post • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic