05-18-2021, 10:00 AM
(This post was last modified: 05-18-2021, 10:14 AM by Koikilensoi.)
(05-18-2021, 07:55 AM)Zebulon Walton Wrote: If ssh doesn't work then there's an issue with that which must be resolved before sshfs will work. Once you have ssh working properly you can work with sshfs.
On the PC/laptop side you should not be usining sudo to run sshfs, it is not needed if you have read/write access to the mount point. You would have the proper permissions if you "mkdir /tmp/mnt" from a non-root command shell, or create it using a file manager running in your account. Make sure the account you're logging into on the Pinephone side has permission to access what you need on the phone.
Thanks again, that was useful.
So... Trying to ssh, I realized that I had a wrong key in /.ssh/known_hosts, probably because it was from the phone's previous OS.
I've deleted it and by ssh again, the new one was added to list of known hosts. And ssh worked fine.
Then I managed to sshfs (without sudo) and it worked fine. I see the phone folder mounted and I can unmount it.
BUT I stil cannot copy files to the phone (still says permission denied).
To be continued...
(05-18-2021, 09:32 AM)awaittrot Wrote: If I recall correctly, postmarketOS creates an additional user if you choose to enable SSH at install time.
Indeed, that's what I've done.
(05-18-2021, 09:32 AM)awaittrot Wrote: That user does not have write permission to /home/user (default user's home directory).
If you want to mount /home/user on your PC, you have to login as "user".
That would make sense then.
I tried
Code:
sshfs user@ip:/home/user /tmp/mnt
Then trying to simply ssh to user@ip, I get Permission denied (publickey,keyboard-interactive).
Don't know if your last bit of code would solved that, haven't tried yet