Notices


Reply
Thread Tools
Schturman's Avatar
Posts: 5,318 | Thanked: 4,080 times | Joined on Jan 2010 @ Israel
#1
Here is a guide that I created for noobs like me
It's PDF file and you can save it on your phone

Root and User SSH access via Nautilus

on Linux PC
I used Ubuntu and it worked perfectly, instruction based on instruction for Nokia N9
For Windows users, see this thread or download this instruction.
On your Jolla phone: Go to Setting -> System settings -> Developer mode and activate it. When it finish, allow Remote connection andset password for user -> press SAVE. DONT allow developer updates !!! (as far as I know it still cause to the problems).
If you not have root pass, do it from your phone terminal app:
devel-su
(insert your pass)
passwd root (hit enter)
Create pass for ROOT
Confirm this pass again
Without ROOT privileges:
1. Open File Manager.
2. In the /home/your_user_name create 2 folders: MyNemo and MyRoot.
3. Open Terminal and write:

For the ROOT access to your phone:
Code:
sshfs root@ххх.ххх.хх.хх:/ /home/your_user_name/MyRoot
* Now it will ask your Phone ROOT password -> insert it

For the USER access to your phone:
Code:
sshfs nemo@ххх.ххх.хх.хх:/home/nemo /home/your_user_name/MyNemo
* Now it will ask your Phone USER password -> insert it

ххх.ххх.хх.хх = IP of your phone.

4. Go back to: /home/your_user_name in the File manager.
5. Folder MyNemo will share nemo from your phone and folder MyRoot will share all your phone system files.
6. For ending of session:
* for EXIT from MyNemo, write:
Code:
sudo umount /home/your_user_name/MyNemo
* It will ask your PC password -> insert it

* for EXIT from MyRoot, write:
Code:
sudo umount /home/your_user_name/MyRoot
* It will ask your PC password -> insert it

P.S. if connection dropped, you can try reconnect with:
Code:
sshfs o reconnect root@ххх.ххх.хх.хх:/ /home/your_user_name/MyRoot
With ROOT privileges: 1. Create file named Nautilus.desktop that include:
Code:
[Desktop Entry]
Name=Nautilus
Comment=Browse the filesystem with administrator rights
Exec=gksudo nautilus
Icon=file-manager
Terminal=false
Type=Application
Categories=Application;System;
2. Put this file to:
/home/your_user_name/.local/share/applications

3. Open Dash Home and in the search line write: Nautilus
4. Press on the File Manager with name Nautilus, it will open new window and ask your PC password, insert your PC password and it will open for you File Manager with ROOT privileges.
5. In the /home/your_user_name create 2 folders: MyNemo and MyRoot.
6. Open Terminal and write:
For the ROOT access to your phone:
Code:
sudo sshfs root@ххх.ххх.хх.хх:/ /home/your_user_name/MyRoot
* It will ask your PC password -> insert it
* Now it will ask your Phone ROOT password -> insert it

For the USER access to your phone:
Code:
sudo sshfs nemo@ххх.ххх.хх.хх:/home/nemo /home/your_user_name/MyNemo
* It will ask your PC password -> insert it
* Now it will ask your Phone USER password -> insert it

ххх.ххх.хх.хх = IP of your phone.

7. Go back to: /home/your_user_name in the Nautilus file manager.
8. Folder MyNemo will share nemo from your phone and folder MyRoot will share all your phone system files.
9. For ending of session:
* for EXIT from MyNemo, write:
Code:
sudo umount /home/your_user_name/MyNemo
* It will ask your PC password -> insert it
* for EXIT from MyRoot, write:
Code:
sudo umount /home/your_user_name/MyRoot
* It will ask your PC password -> insert it

P.S. if connection dropped, you can try reconnect with:
Code:
sudo sshfs o reconnect root@ххх.ххх.хх.хх:/ /home/your_user_name/MyRoot

-----------------------------------------------------------------------------------------------------------------------------


Solution if you get this error when you trying to connect to your phone:
Code:
read: Connection reset by peer
1. Run this command first:
Code:
ssh nemo@xx.xx.x.x
xx.xx.x.x = IP of your phone.
2. You will get this long message:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx.
Please contact your system administrator.
Add correct host key in /home/YOUR_NAME/.ssh/known_hosts to get rid of this message.
Offending RSA key in /home/YOUR_NAME/.ssh/known_hosts:2
remove with: ssh-keygen -f "/home/YOUR_NAME/.ssh/known_hosts" -R xx.x.x.x
RSA host key for xx.x.x.x has changed and you have requested strict checking.
Host key verification failed.
xx.x.x.x = IP of your phone.

3. Now run this command:
Code:
ssh-keygen -f "/home/YOUR_NAME/.ssh/known_hosts" -R xx.x.x.x
4. You will get this message:
/home/YOUR_NAME/.ssh/known_hosts updated.
Original contents retained as /home/YOUR_NAME/.ssh/known_hosts.old
5. Run this command again:
Code:
ssh nemo@xx.xx.x.x
xx.xx.x.x = IP of your phone.

6. And you will get this message. When it ask you for continue, write yes, when at the end it will ask you for your Phone USER password -> insert it:
The authenticity of host 'xx.xx.x.x (xx.xx.x.x)' can't be established.
RSA key fingerprint is xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'xx.xx.x.x' (RSA) to the list of known hosts.
nemo@xx.xx.x.x's password:
xx.xx.x.x = IP of your phone.

7. Now you will get this message, that mean a successfully connected to your phone:
BusyBox v1.20.0.git (MeeGo 3:1.20-0.2+0m8) built-in shell (ash)
Enter 'help' for a list of built-in commands
.

8. Now write: exit and you will get:
Connection to xx.xx.x.x closed.
xx.xx.x.x = IP of your phone.

9. From this point you can start access to your phone file system like explained at the beginning




Thanks to DaShaker and CODeRUS.

IMPORTANT:
Remember, when you play with system files, you can break your device. If it happens, I'm not responsible for the damage




Download PDF file



Last edited by Schturman; 2014-04-30 at 16:57.
 

The Following 3 Users Say Thank You to Schturman For This Useful Post:
Schturman's Avatar
Posts: 5,318 | Thanked: 4,080 times | Joined on Jan 2010 @ Israel
#2
 
Posts: 1 | Thanked: 0 times | Joined on Oct 2016
#3
Originally Posted by codderus View Post
sshfs to root@remote host doesnt require sudo on local machine with Crazy Bulk at https://deadliftdonkey.com/crazy-bulk-review
to umount sshfs mount point without sudo you can use fusermount -u FolderNameHere
Thanks very much for the guide Schturman, very helpful for noobs like me.

Last edited by Kyrose; 2017-09-05 at 13:30.
 
Schturman's Avatar
Posts: 5,318 | Thanked: 4,080 times | Joined on Jan 2010 @ Israel
#4
Originally Posted by Kyrose View Post
Thanks very much for the guide Schturman, very helpful for noobs like me.
You are welcome
 
coderus's Avatar
Posts: 6,068 | Thanked: 11,242 times | Joined on Nov 2011 @ Open Mobile Platform, Innopolis, Russia
#5
sshfs to root@remote host doesnt require sudo on local machine
to umount sshfs mount point without sudo you can use fusermount -u FolderNameHere
__________________
Twitter | Openrepos | GitHub | PayPal.Me
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 01:11.