[Bug 2258] New: Add hint to IPv6 syntax

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Tue Jul 22 07:12:08 EST 2014


https://bugzilla.mindrot.org/show_bug.cgi?id=2258

            Bug ID: 2258
           Summary: Add hint to IPv6 syntax
           Product: Portable OpenSSH
           Version: 6.6p1
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: scp
          Assignee: unassigned-bugs at mindrot.org
          Reporter: mindrot at r.z11.de

Created attachment 2458
  --> https://bugzilla.mindrot.org/attachment.cgi?id=2458&action=edit
man page with hint for brackets around ipv6 address

In the man page it sais nothing about the format you have to use if you
want to copy from or to a host that is just an IPv6 address:

scp requires some special syntax as this example shows:

    $ scp filename user@\[fe80::203:6dff:fe00:83cf%eth0\]:/tmp/

The IPv6 address must be enclosed in brackets, which must then be
escaped. If you’re logging in as a different user, the username goes
outside the braces. And you must specify the local interface with the
percent sign for Link Local addresses.

This should be added to the man page or as a hint in the error that
occurs, if you try to use the command without brackets or without
escape-signs, for example if there are several colons in the hostname,
instead of for example

    $ scp -6 user at 2001:db8:0:1:/tmp/test.file .

    > ssh: Could not resolve hostname 2001: Address family for hostname
not supported

it should say something like

    > ssh: missing brackets around IPv6 address

-- 
You are receiving this mail because:
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list