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
  Short Guide to Using OpenVPN client GUI and .ovpn config file on PP biketool 0 98 12-16-2024, 02:07 PM
Last Post: biketool
  Calls 4G not working oliwierzgorniak 2 2,275 08-06-2024, 02:20 PM
Last Post: baptx
  Mobile internet via cellular network mostly not working Anna 18 14,202 01-19-2024, 02:59 AM
Last Post: anonymous
Exclamation The internal speaker stops working anonymous 6 2,762 01-17-2024, 05:53 PM
Last Post: anonymous
  APN settings not working with new operator SIM card user641 1 1,450 03-01-2023, 04:43 PM
Last Post: anonymous
  Possible Solution for Microphone Not Working Ferriah 0 1,236 02-13-2023, 01:09 PM
Last Post: Ferriah
  Squeekboard stopped working Zebulon Walton 2 1,708 11-24-2022, 08:41 PM
Last Post: Zebulon Walton
  suspend inhibit no longer working jsch 3 2,752 10-23-2022, 09:20 AM
Last Post: LibrePhoneUser
  low disk space on file system root revisited benedikt55 2 2,154 09-24-2022, 10:16 AM
Last Post: benedikt55
  Rescue Your Mobian post Update Aug22 faster fix to working guide biketool 9 6,922 09-05-2022, 12:10 AM
Last Post: biketool

Forum Jump:


Users browsing this thread: 4 Guest(s)