[HowTo for dummies] Moving files between Jolla and Linux/Mac using SFTP via GUI [not a question]

asked 2015-12-24 13:11:53 +0300

this post is marked as community wiki

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

updated 2015-12-24 13:16:26 +0300

This is a super simple guide for moving files between your Jolla and your Linux/Mac computer. No command line required.

1. Step: Enable developer mode

Settings -> System -> Developer mode

Check the 2 first options and enter a password of your choice. Write down the password.

enabling dev mode on a Jolla

2. Step: Turn your computer on and log into your user account if you haven't already

3. Step: Connect your Jolla to your computer with an usb cable and choose Developer mode from the pop-up dialog. Put your Jolla on the table, you won't need to use it for the rest of this guide.

4. Step: Open your computer's file manager. On Ubuntu it looks like this:

file manager on Ubuntu

5. Step: In the file manager, navigate to sftp://192.168.1.15 (the USB IP adress as seen in the first picture).

navigating to sftp://

On Ubuntu you can enter this location from the menu bar or by pressing Ctrl and L at the same time.

entering the directory

6. Step: When prompted, enter the password you set in step 1. The user name is nemo.

image description

7. Step: Done! You are now at the very bottom of the file system. Be careful not to mess stuff up! Here's what you should see right now on Ubuntu:

image description

Unmount your Jolla by clicking the icon seen in the screenshot next to the mouse before removing the USB cable. Also, turn off Remote connection (set in step 1) for maximum safety.

Additional info: You can find your pictures, videos and music under home -> nemo in folders named Music and Pictures. Your SD card is located at media -> sdcard under one of the folders. Don't worry about the strange names.

Have fun! -jollailija

First step image from https://together.jolla.com/question/28095/howto-ssh-jolla-on-windows-over-wlan/

edit retag flag offensive reopen delete

The question has been closed for the following reason "not a real question" by jollailija
close date 2015-12-24 13:15:58.834404

Comments

While this is a nice -and welcome- how to If you have to activate dev mode and use sftp it is not considered for dummies.

:/ still a proper solution to this huge problem is missing. Some tried noone delivered a polished product.

ApB ( 2015-12-24 13:22:59 +0300 )edit
2

@ApB Well, this is the easiest non-MTP file transferring solution for Linux/Mac I've found so far. I'd say anything can be considered as "for dummies" as long as the guide is clear enough (someone using Mac, please add some screenshots :) ) and you don't need to install/configure additional software.

jollailija ( 2015-12-24 14:05:08 +0300 )edit

Maybe i should have written for the average joe. Anyway i believe you get my point. :)

ApB ( 2015-12-24 14:11:48 +0300 )edit
2

@ApB: there are no "average Joes" among the Jolla users, and I'm pretty sure there will never be

SchröpfeMich ( 2015-12-24 18:04:13 +0300 )edit

Good works!

Luca ( 2015-12-24 18:57:06 +0300 )edit
1

@SchröpfeMich

That's totally what i don't want to happen. No point in designing/targeting a product for a minority.

ApB ( 2015-12-24 19:54:22 +0300 )edit

hi, I don't know, how in Ubuntu, but I was able to pretty simply install mtp protocol to my OpenSUSE, this seems to be more complicated.. I am not sure, how in Mac, but I assume it might work the same way (first few google results), but it is always good to know the possibilities :)

Bobsikus ( 2015-12-25 07:53:43 +0300 )edit

Similar post on TMO that I wrote in 2014 ;)
http://talk.maemo.org/showthread.php?t=93109

Schturman ( 2015-12-25 08:13:54 +0300 )edit

@Bobsikus I am able to use MTP out of the box, but this isn't the case for everyone. Also, this way you have access to the whole system which is a big plus.

jollailija ( 2015-12-25 10:32:29 +0300 )edit

@schturman No, your guide is about SSHFS, that's very different. In this guide we use SFTP which doesn't need command line or manual mounting. And, if you don't do SFTP as root you can't mess system files. Less risk!

jollailija ( 2015-12-25 10:35:56 +0300 )edit

Thank you!

This works as well with WLAN while developer mode activated and remote connection enabled. Very nice.

Jolla095 ( 2015-12-25 20:35:36 +0300 )edit
1

You may use the "Connect to Server"-Option in the lower left instead. Type there your "sftp://192.168.XXX.XXX". The last entries will be saved, so you need just 2 clicks in the future.

Robomike ( 2015-12-26 01:24:11 +0300 )edit

@Jolla095 Yeah, I just went for the easiest way since this how-to is for beginners.

@Robomike Yeah, I found that while writing the instructions. I had to finish this in a rush so I left that out. Well, it's a wiki so feel free to improve it :) I'll add it once I fix my laptop: My grub broke and isn't showing all my installed OSes so I can't access my Ubuntu.

jollailija ( 2015-12-26 12:52:43 +0300 )edit

learning, but ... anybody tried this with OSX? Cyberduck, when I try, messages 'operation timed out' after minutes. Also informs of using port 22. Apple Finder's command 'connect to server' works neither.

danfin ( 2015-12-30 16:50:04 +0300 )edit

Strange, I'll ask my MacBook using friend to come over and test this.

jollailija ( 2015-12-31 11:53:41 +0300 )edit

Hi, what can I do to force this prompt (step 6)? I'm never prompted, just timed out. Sftp connection does not seem to work for me. I followed the instructions above (enabled developper mode and allowed remote connection via SSH), and then: nothing. No connection under sftp://192.168.X.XX Ping: 0% received, 100% packet loss.

Strangely this problem started after a factory reset of my Jolla (updated to 2.0.0.10 Saimaa). It worked before the reset, also with 2.0.0.10 Saimaa. My computer(s): Linux Mint 17.3 64bit and 32bit, as well as Ubuntu 15.10 64bit. Also checked with Fedora 23.

Connection via the ordinary PC USB mode in Jolla does work, but with certain limitations (file handling on the phone SD card and phone memory not possible using MTP protocol, this is why I was looking into the SSH file transfer, using the developper mode). Any idea? Thanks Georg

Georg ( 2016-01-11 10:31:06 +0300 )edit

just checked with system log: upon connecting the Jolla to my PC (I mean, unsuccessfully connecting, trying with SFTP in developper mode) the PC's syslog is filled with messages (approx. 170 lines), some of them saying DHCPv4 request timed out, others like ip-config-unavailable What is going wrong here? What can I do to solve the issue? any hints appreciated

Georg ( 2016-01-11 11:57:00 +0300 )edit

I think @Georg's and @danfin's problems have the same reason: Jolla's ip is not configured. You need to type ifconfig usb0 inet 192.168.2.14 into the terminal of your computer as root. Works across all UNIX machines (Mac, Linux, BSD). usb0might be something different, though. I'll add this to the main post when I get on a computer.

jollailija ( 2016-01-11 14:02:03 +0300 )edit

why .14 ?? The developper mode of my Jolla is preconfigured to USB-IP 192.168.2.15, as also shown in the screenshot at the top of the page. Or do you mean to deliberately try a different address? Please elaborate on these points, and how I could proceed. Any hints appreciated. btw.: usb0 is correct

Georg ( 2016-01-11 17:56:43 +0300 )edit

Yes, 14 is on purpose. You configure it with 14 and connect with 15. Because reasons. Other way around it doesn't work.
So: usb0 was correct on your machine. Did you try sftp after doing ifconfig as root? Does it work?

jollailija ( 2016-01-11 20:43:57 +0300 )edit

nope I typed sudo ifconfig usb0 inet 192.168.2.14 and then I tried to SFTP to 192.168.2.15, but no connection possible. again, I received loads of messages in syslog, e.g. related to some connection timeouts, and the network adapter desperately trying something... DHCPDISCOVER on usb0 to 255.255.255.255 port 67 interval 4 (xid=0xb70fb422) (usb0): device state change: ip-config -> failed (reason 'ip-config-unavailable') [70 120 5]

but thanks a lot for your suggestions cheers Georg

Georg ( 2016-01-12 09:33:36 +0300 )edit
1

btw.: when I do ifconfig without any arguments (just checking), it seems like there is no inet address assigned, just an inet6 address (IPv6), only after doing the ifconfig I get the inet address 192.168.2.14

Georg ( 2016-01-12 09:44:03 +0300 )edit

Yes, ifconfig adds the missing address. Something is clearly wrong, since DHCPDISCOVER has the wrong address and port for usb0. You can try running ifconfig as root and not just su (I don't think is makes a difference, but try anyway, you never know).

jollailija ( 2016-01-12 16:08:55 +0300 )edit

sorry, this does not work with my Jolla. sftp is still impossible, even after following your suggestions. What else could I try? Redo the factory reset? Will it change anything? But what is it which keeps my Jolla from behaving as expected? What can I do to make DHCPDISCOVER work with my phone? thx Georg

Georg ( 2016-01-13 20:32:16 +0300 )edit

I doubt the problem is in your Jolla, but if the instructions don't work with Ubuntu, I have no idea what's the problem.
You could try SSHFS instead of SFTP, there is a link to instructions a few comments up from here.

jollailija ( 2016-01-14 16:14:04 +0300 )edit

@Georg I think I found the problem: for some reason it's not always usb0. Today I found out mine was en************* (* means any char). Do ifconfig and then find one which has inet addr 192.168.2.**. Then copy the name and do ifconfig [the name goes here, for example enkjr9858dgd] inet 192.168.2.14. After that SFTP, SSH and all the stuff works.

jollailija ( 2016-01-17 13:48:11 +0300 )edit

still no chance, unfortunately

what I did in the meantime: 1. reset device one more time 2. changed from German to English (UK) localization 3. my Jolla still is shown as usb0 with ifconfig 3a. the difference to before: now it is shown as inet address 192.168.2.5 (before, the inet address would not be assigned before typing ifconfig usb0 inet 192.168.2.14) yes, it is ...2.5, not ...2.15 of course, after typing the ifconfig command, the inet address is assiged to 192.168.2.14, but still it turns out to be impossible to connect, neither SFTP nor SSH. Just the ordinary PC connection mode is OK. One more comment: pinging is possible now (this started working with your hint of the 192.168.2.14 address, not only now), i.e. the network adapters of my computer and my Jolla seem to communicate, somewhow).

Georg ( 2016-01-18 18:30:53 +0300 )edit

That's too bad :(
Yes, Jolla is shown with address like ...2.5 which is why you need to configure it to ...2.14. Btw, have you tried connecting over WLAN?

jollailija ( 2016-01-19 11:38:09 +0300 )edit

oh, yes, this works, finally! Connecting via the WLAN IP address 192.168.0.3 solved the issue, SFTP is up and running. Maybe it was just an issue with the USB MTP mode. Thanks a lot! cheers Georg

Georg ( 2016-01-19 12:03:09 +0300 )edit