bugzilla-daemon at bugzilla.mindrot.org
2010-Dec-22 04:51 UTC
[Bug 1847] New: SFTP doen't work well with IPV6 address
https://bugzilla.mindrot.org/show_bug.cgi?id=1847 Summary: SFTP doen't work well with IPV6 address Product: Portable OpenSSH Version: 5.6p1 Platform: All OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: sftp AssignedTo: unassigned-bugs at mindrot.org ReportedBy: adamchen at live.cn Greetings. I'm using ssh 5.6p1 release and have met a problem using SFTP with IPV6 address. Here's a brief. When I ran command "sftp -6 fe80::217:8ff:fe7c:d91c", SFTP threw out below error messages. ssh: Could not resolve hostname fe80: host nor service provided, or not known Connection closed See that the hostname has been cut as "fe80", and of cource this could not be resolved. By reading sftp.c, I noticed that this happened in line 2207. 2207 if ((cp = colon(host)) != NULL) { 2208 *cp++ = '\0'; 2209 file1 = cp; 2210 } The function colon(?) is used to analyze if user's input command is like ?sftp host_address:/directory?. If it is, colon(?) modifies the value of ?host? from ?host_address:/directory? to ?host_address?, and returns value ?/directory? to string ?cp?. In current case, I think colon(...) incorrectly cuts a valid IPV6 address. Would you please verify this bug and do a fix? Thanks. -- Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug.
bugzilla-daemon at bugzilla.mindrot.org
2010-Dec-22 05:52 UTC
[Bug 1847] SFTP doen't work well with IPV6 address
https://bugzilla.mindrot.org/show_bug.cgi?id=1847 --- Comment #1 from Adam <adamchen at live.cn> 2010-12-22 16:52:13 EST --- Since sftp allows users to use enter command like "sftp address:/directory", there could also be some problems when address is an IPV6 address. -- Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug.
bugzilla-daemon at bugzilla.mindrot.org
2011-May-06 01:09 UTC
[Bug 1847] SFTP doen't work well with IPV6 address
https://bugzilla.mindrot.org/show_bug.cgi?id=1847 Damien Miller <djm at mindrot.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |djm at mindrot.org Blocks| |1845 Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Damien Miller <djm at mindrot.org> 2011-05-06 11:09:27 EST --- You should enclose IPv6 addresses in square brackets to avoid ambiguity. E.g. sftp [::1] I'll add a note to sftp.1: +.Pp +Since some usage formats use colon characters to delimit host names from path +names, IPv6 addresses must be enclosed in square brackets to avoid ambiguity. +.Pp -- Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email ------- 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.
bugzilla-daemon at bugzilla.mindrot.org
2011-Sep-06 05:33 UTC
[Bug 1847] SFTP doen't work well with IPV6 address
https://bugzilla.mindrot.org/show_bug.cgi?id=1847 Damien Miller <djm at mindrot.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #3 from Damien Miller <djm at mindrot.org> 2011-09-06 15:33:07 EST --- close resolved bugs now that openssh-5.9 has been released -- Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email ------- 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.
Possibly Parallel Threads
- sshd dies if passed host key with relative path on command line
- [Bug 49088] New: MapsGL labels doen't render properly on nouveau
- Rails 3 - Translation of Error header doen't work
- hetlp_type text doen't work on Ubuntu
- [Asterisk 1.6] Mysql cdr addon doen't write full channel infomation when disposition is Failed