[Bug 1602] New: ssh: doesn't handle IPv6 addresses with brackets

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Fri Jun 5 15:18:35 EST 2009


           Summary: ssh: doesn't handle IPv6 addresses with brackets
           Product: Portable OpenSSH
           Version: 5.2p1
          Platform: All
        OS/Version: Linux
            Status: NEW
          Keywords: low-hanging-fruit
          Severity: normal
          Priority: P2
         Component: ssh
        AssignedTo: unassigned-bugs at mindrot.org
        ReportedBy: christopher.smith-bugzilla at sphere-systems.com

ssh can connect to a specific IPv6 address when the bare address
('2001:db8:1234::1') is specified on the command line.  However,
various applications (e.g., scp) use the convention of enclosing the
IPv6 address in brackets as delimiters: '[2001:db8:1234::1]:/tmp/file'.

Currently, ssh cannot handle the bracket-delimited addresses passed by
client applications such as Subversion; instead, it tries to look up
the address as a hostname and predictably fails.

Interpreting IPv6 addresses in brackets would be more consistent
internally and more compatible with applications that use SSH

Steps to reproduce:

1) SSH to an IPv6 address: '# ssh 2001:db8:1234::1' => successful
2) SSH to address with brackets: '# ssh [2001:db8:1234::1]' => 'ssh:
Could not resolve hostname [2001:db8:1234::1]: Name or service not

Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.

More information about the openssh-bugs mailing list