Bug 1894

Summary: ssh requests ipv6 addresses even with ipv6 disabled
Product: Portable OpenSSH Reporter: jchadima
Component: sshAssignee: Assigned to nobody <unassigned-bugs>
Status: NEW ---    
Severity: normal CC: djm, jchadima, jfch, perso
Priority: P2    
Version: 5.8p1   
Hardware: All   
OS: Linux   
Attachments:
Description Flags
patch solving the problem none

Description jchadima 2011-04-27 20:13:11 AEST
ssh tries to resolve and use ipv6 addresses even if ipv6 is disabled. This is caused by the inappropriate flags for getaddrinfo. I'm not sure if this is only glibc nuance or it is a global bug.
Comment 1 jchadima 2011-04-27 20:14:08 AEST
Created attachment 2036 [details]
patch solving the problem
Comment 2 Damien Miller 2011-06-03 10:51:12 AEST
How does this problem manifest? If a host no IPv6 addresses configured but getaddrinfo returns AF_INET6 addresses and attempts to use them, then these connections should harmlessly and quickly fail. Is something else happening?
Comment 3 jchadima 2011-06-03 17:34:36 AEST
problem is with DNS servers which do not correctly responds to AAAA records, this cause inability of resolution.


the full description is at
https://bugzilla.redhat.com/show_bug.cgi?id=699421
Comment 4 Mélanie Chauvel 2019-08-24 02:35:36 AEST
With openssh 8.0p1, openssh hangs a very long time trying to use an IPv6 then falls back to IPv4. I had to explicitly disable IPv6 in NetworkManager, although no other software I use had a problem with it.

Does this match the current bug report or should I open a new one?