can't get file transfer working. Help, please!
#15
(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
but got Connection reset by peer

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
  Reply


Messages In This Thread
RE: can't get file transfer working. Help, please! - by Koikilensoi - 05-18-2021, 10:00 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  New camera app gnome-snapshot working on trixie? vusra 4 979 04-11-2025, 02:53 AM
Last Post: vusra
  Short Guide to Using OpenVPN client GUI and .ovpn config file on PP biketool 0 954 12-16-2024, 02:07 PM
Last Post: biketool
  Calls 4G not working oliwierzgorniak 2 3,047 08-06-2024, 02:20 PM
Last Post: baptx
  Mobile internet via cellular network mostly not working Anna 18 17,281 01-19-2024, 02:59 AM
Last Post: anonymous
Exclamation The internal speaker stops working anonymous 6 4,149 01-17-2024, 05:53 PM
Last Post: anonymous
  APN settings not working with new operator SIM card user641 1 1,922 03-01-2023, 04:43 PM
Last Post: anonymous
  Possible Solution for Microphone Not Working Ferriah 0 1,600 02-13-2023, 01:09 PM
Last Post: Ferriah
  Squeekboard stopped working Zebulon Walton 2 2,495 11-24-2022, 08:41 PM
Last Post: Zebulon Walton
  suspend inhibit no longer working jsch 3 3,474 10-23-2022, 09:20 AM
Last Post: LibrePhoneUser
  low disk space on file system root revisited benedikt55 2 2,798 09-24-2022, 10:16 AM
Last Post: benedikt55

Forum Jump:


Users browsing this thread: 4 Guest(s)