bugzilla-daemon at bugzilla.mindrot.org
2018-Aug-24 15:24 UTC
[Bug 2899] New: scp remote-to-remote does not work with IPv6 addresses anymore
https://bugzilla.mindrot.org/show_bug.cgi?id=2899 Bug ID: 2899 Summary: scp remote-to-remote does not work with IPv6 addresses anymore Product: Portable OpenSSH Version: 7.7p1 Hardware: Other OS: Linux Status: NEW Severity: enhancement Priority: P5 Component: scp Assignee: unassigned-bugs at mindrot.org Reporter: jjelen at redhat.com Created attachment 3172 --> https://bugzilla.mindrot.org/attachment.cgi?id=3172&action=edit proposed patch Using IPv6 addresses for remote-to-remote transfers does not work anymore. This worked fine in OpenSSH 7.4 and before. # scp -r -vvv jjelen@\[::1\]:/home/jjelen/Documents/abeceda.txt jjelen@\[::1\]:/tmp/ fails with the error debug1: resolve_canonicalize: hostname is an unrecognised address ssh: Could not resolve hostname : Name or service not known lost connection This issue express itself earlier in the log as IPv6 address in the URI that is not enclosed in the square brackets: Executing: /usr/bin/ssh -x -oClearAllForwardings=yes -t -v -v -v -l jjelen -- ::1 scp -v -r /home/jjelen/Documents/abeceda.txt jjelen@::1:/tmp/ This leads in the end to empty hostname: Executing: program /usr/bin/ssh host , user jjelen, command scp -v -r -t :1:/tmp/ and to the error above. This can be pretty simply addressed by the attached patch. -- You are receiving this mail because: You are watching the assignee of the bug.
bugzilla-daemon at mindrot.org
2023-Oct-11 05:28 UTC
[Bug 2899] scp remote-to-remote does not work with IPv6 addresses anymore
https://bugzilla.mindrot.org/show_bug.cgi?id=2899 Damien Miller <djm at mindrot.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |djm at mindrot.org Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #1 from Damien Miller <djm at mindrot.org> --- This seems to have been fixed at some point. Both scp [::1]:/bin/ls [::1]:/tmp scp -O [::1]:/bin/ls [::1]:/tmp work for me. Please reopen if otherwise. -- 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.