bugzilla-daemon at bugzilla.mindrot.org
2009-Dec-14 15:26 UTC
[Bug 1685] New: ssh attempts v4 connection w/v6 BindAddress setting in ssh config
https://bugzilla.mindrot.org/show_bug.cgi?id=1685 Summary: ssh attempts v4 connection w/v6 BindAddress setting in ssh config Product: Portable OpenSSH Version: 5.3p1 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: Miscellaneous AssignedTo: unassigned-bugs at mindrot.org ReportedBy: lippard-mindrot at discord.org The following error occurs (from sshconnect) in my mixed IPv6/v4 environment when ssh'ing from one machine to another (IP addresses have been obfuscated) ssh -vv openapple OpenSSH_5.3, OpenSSL 0.9.8k 25 Mar 2009 debug1: Reading configuration data /home/lippard/.ssh/config debug1: Applying options for openapple debug1: Reading configuration data /etc/ssh/ssh_config debug2: ssh_connect: needpriv 0 debug1: Connecting to openapple [10.22.5.50] port 2222. getaddrinfo: 2001:470:d:19a:d0::100: no address associated with name debug1: Connecting to openapple [2001:470:d:19a:d5::50] port 2222. The getaddrinfo error occurs because I have an ssh config which sets the BindAddress to 2001:470:d:19a:d0::100 when I ssh to host openapple. openapple has a DNS A record of 10.22.5.50 and an AAAA record of 2001:470:d:19a:d5::50 (both of which have appropriate rDNS). Looks like ssh is failing to recognize that my BindAddress is an IPv6 address rather than a DNS name, despite the fact that ":" is not a valid character in DNS names. Given my BindAddress setting, it should not be attempting an IPv4 connection in the first place. -- Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug.
bugzilla-daemon at bugzilla.mindrot.org
2010-Jan-12 08:12 UTC
[Bug 1685] ssh attempts v4 connection w/v6 BindAddress setting in ssh config
https://bugzilla.mindrot.org/show_bug.cgi?id=1685 Darren Tucker <dtucker at zip.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dtucker at zip.com.au --- Comment #1 from Darren Tucker <dtucker at zip.com.au> 2010-01-12 19:12:41 EST --- ssh is trying to resolve your bindaddress (which could be a hostname) in the addressfamily of each of the addresses returned by your resolver. This obviously doesn't work for IPv4, but ssh doesn't know this until the getaddrinfo fails, generating the error. Since only want IPv6 you should also set "AddressFamily inet6" where you set your IPv6 BindAddress. -- Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug. You are watching someone on the CC list of the bug.