Hi, I decided to investigate for myself the issue of sshfs IPv6 numerical address handling and conclude that it is due to the way it parses the 'host' parameter. Basically it expects the only colon to be between the host and the path section, so this fails when presented with an IPv6 numerical address. Once the issue of parsing is dealt with ssh is quite capable of accepting an host connection request of the form:
user@::1 I would have provided a patch, but my C is rusty. The pseudo code solution would be (influenced by looking at scp): 1. extract the user if present (put it in tuser) and remove it from the input string 2. if host string starts with '[' look for ']', then look for ':' and treat everything after as the path and everything before as the host 3. remove the square brackets from the host name 4. create the sshfs.host string such that we append tuser (and '@') if it is not null and then the hostname This means that when we call ssh we would pass myser@::1, ::1, [EMAIL PROTECTED] or localhost. Andre On Sep 17, 8:14 pm, Andre-John Mas <[EMAIL PROTECTED]> wrote: > Thanks for the quick response and the clarification. > > Further tests show that sshfs does support IPv6 addresses, but not the > numerical form. For example this fails: > > sshfs-static-10.5 [EMAIL PROTECTED]::1]:/Users/ /test/ > -oreconnect,volname=test > > but, if I add the following entry to /etc/hosts: > > ::1 localhost-ipv6 > > then this works: > > sshfs-static-10.5 [EMAIL PROTECTED]:/Users/ /test/ - > oreconnect,volname=test > > I will contact the sshfs developers in this regards. Note that the > format I tried specifying in the first example > corresponds to what I would have used for scp: > > scp myfile.txt [EMAIL PROTECTED]::1]:/tmp/ > > Andre > > On Sep 17, 7:44 pm, Amit Singh <[EMAIL PROTECTED]> wrote: > > > MacFUSE has *absolutely* *nothing* to do with IPv6 (or global warming, > > for that matter). > > > How are you specifying the IPv6 address? I suppose something like > > 1050::::5:600:300c:326b ? sshfs, the program itself, won't know how to > > parse such addresses. It expects [EMAIL PROTECTED]:[dir] as an argument--it > > probably won't like a ':' in the host name (address). > > > You should request the sshfs maintainer(s) (http:// > > fuse.sourceforge.net/sshfs.html) and see if they can make it work. > > > Amit > > > On Sep 17, 4:06 pm, Andre-John Mas <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > > I would like to know what the status of MacFUSE is with regards to > > > IPv6 support? For example would I be able to use it mount an ssh share > > > from a server which is only IPv6 accessible? > > > > André --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "MacFUSE" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/macfuse?hl=en -~----------~----~----~----~------~----~------~--~---
