Ask / Submit
6

[Wiki] How to transfer files between Jolla and Mac OS X over the network (LAN)

asked 2014-10-09 12:36:22 +0300

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

updated 2014-10-10 09:40:38 +0300

simo gravatar image

How to transfer files between Jolla and Mac OS X over the network (LAN)

This method will allow your Mac to mount the Jolla's filesystem as a network volume.

For this to work, you need to enable developer mode on the Jolla and install sshfs on the Mac.

WARNING: You can cause serious damage to the phone if you accidentally delete or modify a critical system file. I can't emphasize this enough.

On the phone:

  1. Developer mode must be enabled on the phone: Settings->System->Developer mode

  2. Allow remote connection as well (same menu in settings as (1) above)

  3. Set a password for SSH (same menu)

  4. Note down your IP address which should be visible here under Networking. You will need this IP address later on the Mac to establish the connection.

On the Mac:

  1. Install MacPorts from here:

    https://www.macports.org/install.php

    Macports has some prerequisites to install; follow their detailed instructions. Note that they may differ slightly depending on the OS X version that you are running. You should also keep macports up-to-date using their instructions

  2. Start the OS X Terminal.app located in /Applications/Utility/Terminal.app

  3. In the terminal, execute the following command:

    $ sudo port install sshfs

    If all goes well, you will now be able to mount the Jolla's file system using its IP address which you noted down earlier (say 192.168.0.18).

  4. Create the mountpoint on OS X:

    $ mkdir /Volumes/jolla

  5. Now to connect to Jolla. sshfs will ask for the password you entered into the phone. The example below mounts the entire filesystem from root. Be careful, you can do some serious damage if you're careless.

    $ sshfs nemo@192.168.0.18:/ /Volumes/jolla

    On the Finder desktop, you should now see a network drive which is your phone's filesystem.

Once again, if you delete/modify a critical file, you can break your phone. I am NOT responsible.

To mount just the home directory, which is what you would usually need:

$ mkdir /Volumes/nemo
$ sshfs nemo@192.168.0.18:/home/nemo /Volumes/nemo

TODO

  1. Since OS X deletes the mount point directory when you unmount the network drive, you will have to create it every time you connect to the Jolla. There should be an easier way.
edit retag flag offensive close delete

Comments

Hi @SanjayMehta , I would be very pleased to have your detailed instructions. As didactic as possible,not everyone is familiar with sshfs (me for example :-p). That will also help others I believe. Thank you in advance!

damourti ( 2014-10-09 12:55:02 +0300 )edit

@damourti: done. Let me know if anything's unclear.

Sanjay Mehta ( 2014-10-09 13:39:59 +0300 )edit
1

Great post, but suggesting the following for clearance:

  • Option 1: Make this post a wiki
  • Option 2: Form your question as a simple question (How can I transfer files between Jolla and Mac OS) and offer this Finder solution as one answer to your own question.
simo ( 2014-10-09 17:52:45 +0300 )edit

Cleaned up and converted to wiki. I need some help with the formatting - the list numbering keeps resetting back to 1.

Sanjay Mehta ( 2014-10-10 05:49:52 +0300 )edit

Great! I've edited the numbering, is it ok now? Count starts from the beginning if there's a line starting from very beginning in between, but using space in front of the line moves it along to the numbered list.

simo ( 2014-10-10 09:43:28 +0300 )edit

1 Answer

Sort by » oldest newest most voted
1

answered 2014-10-10 06:34:14 +0300

WhyNotHugo gravatar image

For those less familiar with terminals, MacFusion+osxfuse is a pretty nice GUI on top of sshfs for OS X.

edit flag offensive delete publish link more

Comments

This would be a better and easier solution than mine. Unfortunately I can't get it to work. I get authentication failures when I try to access the Jolla. I can ssh though.

Is there some particular flow to follow while trying this out? I installed osxfuse, sshfs and then macfuse in that order.

This was on a different Mac from the one which has MacPorts, so no chance of a conflict.

Sanjay Mehta ( 2014-10-10 08:13:16 +0300 )edit

Does the osxfuse version of sshfs work through a terminal for you? Also, have you looked at: https://github.com/osxfuse/osxfuse/wiki/SSHFS ?

WhyNotHugo ( 2014-10-10 11:01:34 +0300 )edit
1

@hobarrera: it took a while, but I finally got around to testing your suggestion. Yes, osxfuse's version of sshfs works from the terminal, but not from the GUI. Will update the wiki to suit. Will do that after I try re-installing macfuse etc. I suspect a conflict with an obsolete version of the original macfuse when it was maintained by google.

Sanjay Mehta ( 2014-10-14 08:42:34 +0300 )edit
1

Have a look at this wiki https://github.com/osxfuse/osxfuse/wiki/SSHFS#macfusion It tells you how to replace the sshfs binary from macfusion with a more uptodate version of sshfs that is provided by the osxfuse guys.

Some hints on the configuration and usage of Macfusion: You need to set the home dir, try /home/nemo. If you do not set it, you will get auth errors.

Sometimes, it simply fails to auth and mount. In these cases, I wasn't able to ssh manually from a terminal either. So it seems that sshd on the Jolla becomes unreachable.

Nota bene: Starting with OSX 10.7/Lion, you need to use osxfuse instead of macfuse. Check the "use macfuse compatibilty layer".

the_mgt ( 2014-10-23 23:00:54 +0300 )edit
Login/Signup to Answer

Question tools

Follow
5 followers

Stats

Asked: 2014-10-09 12:36:22 +0300

Seen: 1,102 times

Last updated: Oct 10 '14