Re: [OSXFUSE] Mountain Lion/OSXFUSE/MacFusion --> SSHFS anyone?

7,627 views
Skip to first unread message

Cerebus

unread,
Apr 17, 2013, 4:05:10 PM4/17/13
to osxfus...@googlegroups.com

Same here under 10.8.4. Er… 3. Yeah, 10.8.3. 


Sent from Mailbox for iPhone


On Wed, Apr 17, 2013 at 1:22 PM, Jason S-M <slackm...@gmail.com> wrote:

I installed OSX Fuse and SSHFS and this latest MacFusion from Yoshiki and I cannot connect to a share at all.


Just tell me there was an unexpected error.

On Thursday, December 6, 2012 10:25:50 PM UTC-8, Alex Regueiro wrote:
It's now working for me, but routinely disconnecting I'm afraid. This seems to be the same issue Denis is reporting.

Any ideas?

Cheers,
Alex

On 28 Nov 2012, at 20:17, Yoshiki Vázquez Baeza <yosh...@gmail.com> wrote:

Hello Denis,

Yes, one of the short term goals I have for this build of MacFusion is that it will be fully dependent on OSX Fuse as it has continuous development and more updated versions of the software.

Yoshiki.


El lunes, 19 de noviembre de 2012 09:49:27 UTC-7, Denis Bochko escribió:
now I have a question. As I mentioned before I copied over MF to Lion without installing osxfuse or macfuse, ran it and it worked just fine, meaning it connected to one of my servers, logged in and mounted the share. I am pretty sure I was using that MF2 downloaded from here

So, what is the difference between that version and what you are fixing right now, Yoshiki? did you remove that ssh library from MF and routed through osxfuse?

I am honestly confused why MF works on Lion and does not on ML, those two look pretty similar.

On Friday, 16 November 2012 10:24:48 UTC-5, Alex Regueiro wrote:
Yes, I still cannot get it to work on ML either...

Sent from my iPhone

On 16 Nov 2012, at 14:53, Denis Bochko <denis....@gmail.com> wrote:

Yoshiki,

as for ML build, i have tried all Mf builds that I could find including yours but all of them failed to use username/password pair. It does work if you have keyless access to the server, but that was not an option for me as I have servers that would not allow that. 
Ok, I will setup ML again to get that output that you need. However, it is exactly the same on all Mf. It tells you that Authentications that can continue: publickey,gssapi-with-mic,password. Tries public key, as it is not there, tells you that again and exists with "authentication failed" message, without trying password method.

as for timeouts, here is what I can say. both ML and Lion had timeout within an hour of connecting using public key. One of the computer was on wired connection, and it was happening through the day about 5-6 times. The copy on Lion that I was testing was setup without installing osxfuse of macfuse. That did make sense as Macfuse wiki specifies that to use their libraries with MF you need to symlink the library. But if you don't the library comes with MF. MF connected to a server using password option and mount was pretty fast and the filesystem was browsable. I can not say how long it took to disconnect but computer was used (i meant it did not go into sleep mode), when i looked into mounts next time in about an hour mount was gone. looked into Logs for MF but did not see anything suspicions, except for unmounting.

I will post more log information when i have it, tonight or tomorrow.

On Friday, 16 November 2012 01:41:40 UTC-5, Yoshiki Vázquez Baeza wrote:
Hello,

I know a few users using ML, successfully with the build I linked before. If possible, the next time this happens to you, or if you are capable of reproducing the problem, please copy and paste the _related_ output from the logger in Macfusion (in Macfusion CMD+L).

I cannot comment on a solution related to the fact that it disconnects after some time, if anything this happens to me whenever I change hotspots/connections which I think is rather an SSHFS or an OS X FUSE problem, but I'm not entirely sure. I strongly believe, that the problem is the connection times out and just dies or whatever. On the otherside if I have a virtual machine running in VirtualBox and I'm connected using SSHFS the connections are always persistent, for weeks and weeks.

MBA working, that's a miracle :P

I will probably make a post here if I get a more stable version or this issue solved.

Yoshiki.

El jueves, 15 de noviembre de 2012 14:40:23 UTC-7, Denis Bochko escribió:
I have tried several including this one. I can not make any of those to work on ML. they will not connect using username/password. however, when I tried to use it on Lion, i managed to connect using username/password, but the connection would time out after a while, which became very annoying. you go to a meeting and when come back the drive is not there anymore.

this behaviour is the opposite of what I experience on SL(64bit), where I mount the drive and it will stay mounted even overnight, never mind during the work day.

would really like to get something that would work on ML the same way as it works right now on SL.

there is another thing I can point out. i tried that macfusion2 on a MBA without installing osxfuse just copying macfusion and running it, and it worked just fine. that was a bit surprising.

On Wednesday, 14 November 2012 22:24:36 UTC-5, Alex Regueiro wrote:
I'm glad to hear that someone is working on a fix here! I'm afraid I don't have the necessary knowledge to help with the solution, but I would be quite happy to test out any changes once you think you have something.

Good luck!

Alex

On 10 Nov 2012, at 19:05, Yoshiki Vázquez Baeza <yosh...@gmail.com> wrote:

AFAIK, this problem is being caused by a dictionary relating "filesystems" and "tokens". It gets to a certain point where it no longer has a filesystem for a FS, I've added an assertion to MFFileSystemController.m filesystemForToken method to check that the dictionary it actually has filesystems. 

One solution that sometimes I've seen working for this is resetting my machine and trying again or just make the timeout time longer; say ~50 secs, it eventually connects.

I haven't been able to find a solution for this matter yet, I've a couple development plans for the fork I have, one of the main being fix this annoying bug if anyone would be able to help let me know.


Thanks!

Yoshiki.

El miércoles, 7 de noviembre de 2012 19:39:12 UTC-7, Alex Regueiro escribió:
Any updates on this yet? I'm quite keen for a fix here!

On Sunday, November 4, 2012 12:35:12 AM UTC, Denis Bochko wrote:
As I am having the same problem with MacFusion, I am curious what changed from 10.6 to 10.8 that MacFusion stopped being able to pass passwords. MacFusion stopped working on 10.6 after loading os in 64 bit mode, but that was fixed with that macfuse 2.1.9. the same setup stopped working right after i updated to os 10.8 
found this article
http://patjack.co.uk/macfusion-64-bit-ready-for-lion-mountain-lion/ which has an update version but that gives me the same error. I have several servers that will not allow me to use public key, so I am very interested in having any informaiton on how to make macfusion work again. it is a great tool.

thanks.

On Thursday, 26 July 2012 16:57:53 UTC-4, Chris Ostmo wrote:
Has anyone gotten this combination to work (all updated to the latest version available)?  We have been using MacFusion as a front-end SSHFS client, but it has stopped working in Mountain Lion.  Connection attempts result in an authentication error.

In troubleshooting, I have (in this order) uninstalled OSXFUSE, stopped the MacFusion agent, manually installed the Xcode (4.4) command line tools, reinstalled OSXFUSE and then restarted the MacFusion agent.

I can create the connection from the command line using this sequence:
mkdir /Volumes/www
sudo chown macuser /Volumes/www
/Applications/Macfusion.app/Contents/PlugIns/sshfs.mfplugin/Contents/Resources/sshfs-static linuxuser@remote_ip:/usr/local/www /Volumes/www -o follow_symlinks

But I would prefer that my employees not have to drop to the command line to mount their remote directories.

The mkdir command needs to be run every time because sshfs-static (like linux mount) requires that the mount point exist, but OSX deletes mount points when connected volumes are unmounted.

This sequence of commands works when the MacFusion agent is not running.  I haven't tried it with the agent running because -- why would I need to do that?

I don't know what OSXFUSE libraries are or aren't being used when I connect using this method or if this is even an OSXFUSE issue, so any tips would be appreciated.

Thanks.


--
You received this message because you are subscribed to the Google Groups "OSXFUSE" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osxfuse-grou...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Denis Bochko

unread,
Apr 17, 2013, 4:05:24 PM4/17/13
to osxfus...@googlegroups.com
Yoshiki, I am just wondering if it has been confirmed to work on ML. I saw that on the page it says you need xquartz installed. Does that mean it really works on 10.8? I never managed to get it operation without the use of keypair, but only password that is specified in macfusion

thanks,
Denis

ho...@archiware.com

unread,
Apr 18, 2013, 10:23:38 AM4/18/13
to osxfus...@googlegroups.com
Hi all,

If you want to mount SSH under OSX, then you can use my own developed project WingFS: http://wingfs.com . It can mount different services and not only SSH.

Yoshiki Vázquez Baeza

unread,
Apr 28, 2013, 11:23:16 PM4/28/13
to osxfus...@googlegroups.com
Hello Denis,

Sorry for not following up. I ended up moving to Mountain Lion not long ago and I was able to confirm that Macfusion 2 was not working, however the problem is that X11 has been removed from OS X and newer distributions, for further discussion, please see my last comment in this issue.

All you need to do is to download X11, very easy to install and after this everything should be up and running.

Thanks!

Yoshiki.

Yoshiki Vázquez Baeza

unread,
Apr 29, 2013, 11:39:48 AM4/29/13
to osxfus...@googlegroups.com
Hello,

Sorry, just re-read your last e-mail realized that you've tried using XQuartz. What's the error message that's showing up for you in the log window?

I'll try to do my best to help you.

Thanks!

Yoshiki.



--
You received this message because you are subscribed to a topic in the Google Groups "OSXFUSE" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/osxfuse-group/zYt4A30SqsU/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to osxfuse-grou...@googlegroups.com.

Denis Bochko

unread,
Apr 29, 2013, 12:27:16 PM4/29/13
to osxfus...@googlegroups.com
well, tried it, it does connect, the problem is lack of customization. i need to name each connection how they appear in my finder, that function is nowhere to be found. if you get more options, then it might be worth longer trial.

Denis Bochko

unread,
Apr 29, 2013, 12:29:24 PM4/29/13
to osxfus...@googlegroups.com
Yoshiki. thank you for that posting. after installing xquartz it does work. 

what I am curious about if I simple setup x11 (if you try to run it in 10.8 it tells you it is not installed and asks you if you want to install it), would macfusion work without installing xquartz?

but otherwise it is up and running again and I am very happy about that.

Denis

Yoshiki Vázquez Baeza

unread,
Apr 29, 2013, 10:11:56 PM4/29/13
to osxfus...@googlegroups.com
Hello,

Macfusion will partially works; the mechanism used to pass the password to the SSH client is by calling relying on the SSH_ASK_PASS environment variable and since this has a dependency on some of the libraries that get installed with XQuartz, the program will fail if absent.

Great to hear that it's working for you!!

Thanks!

Yoshiki.

jrobey....@gmail.com

unread,
Sep 25, 2013, 5:00:34 PM9/25/13
to osxfus...@googlegroups.com
Thank you for posting this link. It may be tangential to the discussion, but I was able to install it and begin working via SSH in 10.8 (mountain lion) first time, and so I may do my work for the day. 

again, truly appreciate your headsup about WingFS.

Chris Ostmo

unread,
Jul 26, 2012, 4:57:53 PM7/26/12
to osxfus...@googlegroups.com

Benjamin Fleischer

unread,
Jul 26, 2012, 5:15:20 PM7/26/12
to osxfus...@googlegroups.com
This is a duplicate of issue 36. See https://github.com/osxfuse/osxfuse/issues/36.

As far as I can tell this issue is caused by MacFusion. It looks like MacFusion is unable to pass the password to the underlying SSH binary. MacFusion has not been updated in a very long time. 

As a workaround you can use public keys instead of passwords on OS X 10.8.

Regards,
Benjamin

Chris Ostmo

unread,
Jul 26, 2012, 5:35:02 PM7/26/12
to osxfus...@googlegroups.com
Thank you Benjamin.  I searched and didn't find that thread, but it does, indeed, look like the same issue.

Knowing that it is a MacFusion authentication error and not something in OSXFUSE makes formulating an approach to an acceptable solution much easier (since I have zero hope that anything in MacFusion will ever be fixed).  Your workaround is the right direction.  Alternatively, we can create a script to run the commands I provided and give users a link to click to mount and unmount, but your approach is more appropriate for our needs.

Thanks again.  I appreciate your time and the attention you've given this.

Frans Bouwmeester

unread,
Jul 29, 2012, 4:49:16 AM7/29/12
to osxfus...@googlegroups.com
I run into the same problem and have started trying to fix the issue in the MacFusion source.
What I so far understand is that the problem seems to be caused by the how the password is passed to the MacFuse layer:

    MacFusion GUI <-> MacFusion Agent <-> sshfs.mfplugin <-> sshfs_static <-> new_sshfs_askpass <-> MacFusion Agent

The 'ask_pass' is spawned by the sshfs_static library and in turn calls back the agent to get the password (based on a 1x token earlier generated by the agent).

The issue seems to be using stdin/stdout to pass the password between the sshfs_static and 'askpass'.
To resolve this, probably an updated sshfs_static would be required (haven't debugged sshfs_static yet so not yet 100% sure).

But I'm more wondering if anything speaks agains:
- providing a new MacFusion plugin that calls sshfs directly (instead of sshfs static)
- including the 'askpass' code into sshfs (enabled via cmdline), allowing the new plugin to always use the latest/greatest sshfs "as-is"

Clearly this would make the overall architecture a bit cleaner and allows for future sshfs improvements to be used with MacFusion.

Anyone looked at this before or has ideas what would speak in favor or agains this?

Frans

Christian Ready

unread,
Sep 9, 2012, 7:29:45 PM9/9/12
to osxfus...@googlegroups.com
Do you know how I pass public keys? The log files show: 

(SSHServerFS, 74.114.205.66, 9/9/12 7:24 PM) debug1: No more authentication methods to try.
Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
remote host has disconnected

Maybe it's trying to pass a public key?

dioioib

unread,
Oct 29, 2012, 7:44:29 PM10/29/12
to osxfus...@googlegroups.com
Christian to send a key to the server you issue the following command in terminal.

ssh-copy-id [user account]@[remote host]

I am able to login without password using SSHFS GUI. But am getting a kext error when using MacFuse.

Denis Bochko

unread,
Nov 3, 2012, 8:35:12 PM11/3/12
to osxfus...@googlegroups.com
As I am having the same problem with MacFusion, I am curious what changed from 10.6 to 10.8 that MacFusion stopped being able to pass passwords. MacFusion stopped working on 10.6 after loading os in 64 bit mode, but that was fixed with that macfuse 2.1.9. the same setup stopped working right after i updated to os 10.8 
found this article
http://patjack.co.uk/macfusion-64-bit-ready-for-lion-mountain-lion/ which has an update version but that gives me the same error. I have several servers that will not allow me to use public key, so I am very interested in having any informaiton on how to make macfusion work again. it is a great tool.

thanks.

On Thursday, 26 July 2012 16:57:53 UTC-4, Chris Ostmo wrote:

Alex Regueiro

unread,
Nov 7, 2012, 9:39:11 PM11/7/12
to osxfus...@googlegroups.com
Any updates on this yet? I'm quite keen for a fix here!

On Sunday, November 4, 2012 12:35:12 AM UTC, Denis Bochko wrote:

Yoshiki Vázquez Baeza

unread,
Nov 10, 2012, 2:05:37 PM11/10/12
to osxfus...@googlegroups.com
AFAIK, this problem is being caused by a dictionary relating "filesystems" and "tokens". It gets to a certain point where it no longer has a filesystem for a FS, I've added an assertion to MFFileSystemController.m filesystemForToken method to check that the dictionary it actually has filesystems. 

One solution that sometimes I've seen working for this is resetting my machine and trying again or just make the timeout time longer; say ~50 secs, it eventually connects.

I haven't been able to find a solution for this matter yet, I've a couple development plans for the fork I have, one of the main being fix this annoying bug if anyone would be able to help let me know.


Thanks!

Yoshiki.

El miércoles, 7 de noviembre de 2012 19:39:12 UTC-7, Alex Regueiro escribió:

Alex Regueiro

unread,
Nov 14, 2012, 10:24:32 PM11/14/12
to osxfus...@googlegroups.com
I'm glad to hear that someone is working on a fix here! I'm afraid I don't have the necessary knowledge to help with the solution, but I would be quite happy to test out any changes once you think you have something.

Good luck!

Alex
On 10 Nov 2012, at 19:05, Yoshiki Vázquez Baeza <yosh...@gmail.com> wrote:

Denis Bochko

unread,
Nov 15, 2012, 4:40:23 PM11/15/12
to osxfus...@googlegroups.com
I have tried several including this one. I can not make any of those to work on ML. they will not connect using username/password. however, when I tried to use it on Lion, i managed to connect using username/password, but the connection would time out after a while, which became very annoying. you go to a meeting and when come back the drive is not there anymore.

this behaviour is the opposite of what I experience on SL(64bit), where I mount the drive and it will stay mounted even overnight, never mind during the work day.

would really like to get something that would work on ML the same way as it works right now on SL.

there is another thing I can point out. i tried that macfusion2 on a MBA without installing osxfuse just copying macfusion and running it, and it worked just fine. that was a bit surprising.

On Wednesday, 14 November 2012 22:24:36 UTC-5, Alex Regueiro wrote:

Yoshiki Vázquez Baeza

unread,
Nov 16, 2012, 1:41:39 AM11/16/12
to osxfus...@googlegroups.com
Hello,

I know a few users using ML, successfully with the build I linked before. If possible, the next time this happens to you, or if you are capable of reproducing the problem, please copy and paste the _related_ output from the logger in Macfusion (in Macfusion CMD+L).

I cannot comment on a solution related to the fact that it disconnects after some time, if anything this happens to me whenever I change hotspots/connections which I think is rather an SSHFS or an OS X FUSE problem, but I'm not entirely sure. I strongly believe, that the problem is the connection times out and just dies or whatever. On the otherside if I have a virtual machine running in VirtualBox and I'm connected using SSHFS the connections are always persistent, for weeks and weeks.

MBA working, that's a miracle :P

I will probably make a post here if I get a more stable version or this issue solved.

Yoshiki.

El jueves, 15 de noviembre de 2012 14:40:23 UTC-7, Denis Bochko escribió:

Denis Bochko

unread,
Nov 16, 2012, 9:53:26 AM11/16/12
to osxfus...@googlegroups.com
Yoshiki,

as for ML build, i have tried all Mf builds that I could find including yours but all of them failed to use username/password pair. It does work if you have keyless access to the server, but that was not an option for me as I have servers that would not allow that. 
Ok, I will setup ML again to get that output that you need. However, it is exactly the same on all Mf. It tells you that Authentications that can continue: publickey,gssapi-with-mic,password. Tries public key, as it is not there, tells you that again and exists with "authentication failed" message, without trying password method.

as for timeouts, here is what I can say. both ML and Lion had timeout within an hour of connecting using public key. One of the computer was on wired connection, and it was happening through the day about 5-6 times. The copy on Lion that I was testing was setup without installing osxfuse of macfuse. That did make sense as Macfuse wiki specifies that to use their libraries with MF you need to symlink the library. But if you don't the library comes with MF. MF connected to a server using password option and mount was pretty fast and the filesystem was browsable. I can not say how long it took to disconnect but computer was used (i meant it did not go into sleep mode), when i looked into mounts next time in about an hour mount was gone. looked into Logs for MF but did not see anything suspicions, except for unmounting.

I will post more log information when i have it, tonight or tomorrow.

Alex Regueiro

unread,
Nov 16, 2012, 10:24:36 AM11/16/12
to osxfus...@googlegroups.com
Yes, I still cannot get it to work on ML either...

Sent from my iPhone

On 16 Nov 2012, at 14:53, Denis Bochko <denis....@gmail.com> wrote:

Denis Bochko

unread,
Nov 19, 2012, 11:49:27 AM11/19/12
to osxfus...@googlegroups.com
now I have a question. As I mentioned before I copied over MF to Lion without installing osxfuse or macfuse, ran it and it worked just fine, meaning it connected to one of my servers, logged in and mounted the share. I am pretty sure I was using that MF2 downloaded from here

So, what is the difference between that version and what you are fixing right now, Yoshiki? did you remove that ssh library from MF and routed through osxfuse?

I am honestly confused why MF works on Lion and does not on ML, those two look pretty similar.

On Friday, 16 November 2012 10:24:48 UTC-5, Alex Regueiro wrote:

Yoshiki Vázquez Baeza

unread,
Nov 28, 2012, 3:17:52 PM11/28/12
to osxfus...@googlegroups.com
Hello Denis,

Yes, one of the short term goals I have for this build of MacFusion is that it will be fully dependent on OSX Fuse as it has continuous development and more updated versions of the software.

Yoshiki.


El lunes, 19 de noviembre de 2012 09:49:27 UTC-7, Denis Bochko escribió:

Alex Regueiro

unread,
Dec 7, 2012, 1:25:50 AM12/7/12
to osxfus...@googlegroups.com
It's now working for me, but routinely disconnecting I'm afraid. This seems to be the same issue Denis is reporting.

Any ideas?

Cheers,
Alex

Jason S-M

unread,
Apr 17, 2013, 3:22:44 PM4/17/13
to osxfus...@googlegroups.com
I installed OSX Fuse and SSHFS and this latest MacFusion from Yoshiki and I cannot connect to a share at all.

Just tell me there was an unexpected error.

Jason S-M

unread,
Apr 17, 2013, 3:57:28 PM4/17/13
to osxfus...@googlegroups.com
Now, after doing

1. cd /Applications/Macfusion.app/Contents/PlugIns/sshfs.mfplugin/Contents/Resources
2. mv sshfs-static sshfs-static.orig
3. ln -s /usr/local/bin/sshfs sshfs-static

It tried to connect but I get a message saying the "remote host disconnected"

Denis Bochko

unread,
Apr 17, 2013, 4:00:54 PM4/17/13
to osxfus...@googlegroups.com
Jason, which version of OSX are you using? I never managed to it get it working on ML, although I would really like to.
Reply all
Reply to author
Forward
0 new messages