05-15-2021, 06:00 AM
(This post was last modified: 05-15-2021, 06:31 AM by Zebulon Walton.)
Koikilensoi Wrote:Typically, I've tried the option from Zebulon here above (thx btw), but I get the following :
fuse: bad mount point `/local/mount/point': No such file or directory
On the sshfs command, "/local/mount/point" is not meant to be taken literally if that's what you're doing, it means use or create a suitable mount point that you have read/write access to. Below are the exact commands that I just used to mount my Pinephone's $HOME to be accessible on my Linux PC. Needless to say you need to substitute your own Pinephone's IP address.
(Note that I have my ssh server set up so that it only accepts key-based logins, not passwords, and it is firewalled off from all but my home LAN's subnet. Those steps are not necessary for this to work but if you do not have those kind of security measures in place you don't want to leave ssh server running when not on your home network or connected to cellular internet.)
Code:
mkdir /tmp/mnt
sshfs mobian@192.168.1.200:/home/mobian /tmp/mnt
You will be prompted for your password unless using key-based ssh login. This will be the number used to unlock the phone's screen. Once the sshfs command completes, your home directory on the Pinephone will be in /tmp/mnt on your desktop or laptop computer, and can be accessed with your file manager or command prompt, whichever you prefer.
When done you can unmount the Pinephone from your PC.
Code:
fusermount -u /tmp/mnt
As I said, bear in mind that sshfs will not follow symbolic links. On my Pinephone the directories I'd most likely want to deal with for file transfer (Downloads, Pictures, Videos, etc.) are on an SD card with those directories symlinked from /home/mobian on the eMMC. So when I do file transfer I modify that sshfs command so it goes to the mount point of the SD card on the Pinephone. However if your entire system is on the eMMC or on an SD card, mounting your /home/mobian directory is probably what you would want.