samba-bugs@samba.org
2006-Aug-13 14:44 UTC
DO NOT REPLY [Bug 4016] New: literal IPv6 addresses not supported in ssh protocol
https://bugzilla.samba.org/show_bug.cgi?id=4016
Summary: literal IPv6 addresses not supported in ssh protocol
Product: rsync
Version: 2.6.9
Platform: All
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P3
Component: core
AssignedTo: wayned@samba.org
ReportedBy: david.madore@ens.fr
QAContact: rsync-qa@samba.org
It seems that literal IPv6 addresses are supported in rsync:// URI's (this
was
bug 1675, which is now fixed), but not in ssh. For example, compare the
following behavior of rsync and scp:
vega david ~ $ rsync -av '[fe80::213:d4ff:fee9:3951%eth1]:./empty' /tmp/
ssh: fe80::213:d4ff:fee9:3951%eth1]: Name or service not known
rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
rsync error: unexplained error (code 255) at io.c(463) [receiver=2.6.8]
vega david ~ $ scp -p '[fe80::213:d4ff:fee9:3951%eth1]:./empty' /tmp/
Password:
empty 100% 0 0.0KB/s 00:00
vega david ~ $ ssh fe80::213:d4ff:fee9:3951%eth1
Password:
Linux neptune 2.6.16-2-k7 #1 Sat Jul 15 23:05:41 UTC 2006 i686
<...>
Here I used link-local IPv6 addresses with a scope identifier just to emphasize
(and also because you don't need real IPv6 connectivity or any kind of setup
to
test this), but it doesn't work any better with (non-scoped) global
addresses:
vega david ~ $ rsync -av '[2001:7a8:7171:37:213:d4ff:fee9:3951]:./empty'
/tmp/
ssh: 2001:7a8:7171:37:213:d4ff:fee9:3951]: Name or service not known
rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
rsync error: unexplained error (code 255) at io.c(463) [receiver=2.6.8]
vega david ~ $ scp -p '[2001:7a8:7171:37:213:d4ff:fee9:3951]:./empty'
/tmp/
Password:
empty 100% 0 0.0KB/s 00:00
This is with rsync version 2.6.8, but I also tried with today's CVS.
I'd be really glad if this were fixed (especially for scoped ll addresses,
as
there's no way to register them in DNS, so they *must* be literal, and in
some
cases, when DHCP is out of order or something, ll IPv6 is the best kind of
connection one can achieve!).
I emphasize that this is not a dup of bug 1675.
Happy hacking!
--
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.
samba-bugs@samba.org
2006-Sep-18 01:18 UTC
DO NOT REPLY [Bug 4016] literal IPv6 addresses not supported in ssh protocol
https://bugzilla.samba.org/show_bug.cgi?id=4016 ------- Comment #1 from wayned@samba.org 2006-09-17 20:17 MST ------- Created an attachment (id=2144) --> (https://bugzilla.samba.org/attachment.cgi?id=2144&action=view) Fix to avoid skipping the leading '[' This patch gets rid of the code that skips the leading '[' before handing the hostname off to ssh. I believe that this should work OK, but I can't test it at the moment (since I can't test IPv6 at the moment). The other option would be to leave the leading '[' stripped and to add stripping of the trailing ']'. -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug, or are watching the QA contact.
samba-bugs@samba.org
2006-Sep-18 01:22 UTC
DO NOT REPLY [Bug 4016] literal IPv6 addresses not supported in ssh protocol
https://bugzilla.samba.org/show_bug.cgi?id=4016
wayned@samba.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Comment #2 from wayned@samba.org 2006-09-17 20:21 MST -------
This fix was checked into CVS.
--
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.
samba-bugs@samba.org
2006-Sep-18 10:17 UTC
DO NOT REPLY [Bug 4016] literal IPv6 addresses not supported in ssh protocol
https://bugzilla.samba.org/show_bug.cgi?id=4016
david.madore@ens.fr changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
------- Comment #3 from david.madore@ens.fr 2006-09-18 05:16 MST -------
Unfortunately, ssh will not accept hostnames within brackets (I think it should
be more liberal in what it accepts), so you need to strip both '[' and
']'.
--
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.
samba-bugs@samba.org
2006-Sep-18 10:21 UTC
DO NOT REPLY [Bug 4016] literal IPv6 addresses not supported in ssh protocol
https://bugzilla.samba.org/show_bug.cgi?id=4016 ------- Comment #4 from david.madore@ens.fr 2006-09-18 05:21 MST ------- (By the way, on most systems - Linux, FreeBSD, OpenBSD, etc. - you might be able to test IPv6, even without a global IPv6 address, just by loading the module at boot and using link-local addresses, or, if even that's not an option, using ::1 which is the IPv6 loopback.) -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug, or are watching the QA contact.
samba-bugs@samba.org
2006-Sep-30 06:15 UTC
DO NOT REPLY [Bug 4016] literal IPv6 addresses not supported in ssh protocol
https://bugzilla.samba.org/show_bug.cgi?id=4016
wayned@samba.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |FIXED
------- Comment #5 from wayned@samba.org 2006-09-30 01:14 MST -------
I checked-in a fix for this last week.
--
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.
Possibly Parallel Threads
- DO NOT REPLY [Bug 1675] rsync cannot cope with literal IPv6 addresses
- PXE boot hangs while transferring vmlinuz or initrd.img
- feature-wish: "--ignore-unrelated-errors" option
- No sub-menus in complex.c32
- [Bug 1675] New: rsync cannot cope with literal IPv6 addresses