Bug 2258 - Add hint to IPv6 syntax
Summary: Add hint to IPv6 syntax
Status: NEW
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: scp (show other bugs)
Version: 6.6p1
Hardware: All All
: P5 enhancement
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-22 07:12 AEST by Ruben
Modified: 2014-07-22 07:12 AEST (History)
0 users

See Also:


Attachments
man page with hint for brackets around ipv6 address (2.18 KB, application/gzip)
2014-07-22 07:12 AEST, Ruben
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ruben 2014-07-22 07:12:08 AEST
Created attachment 2458 [details]
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@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