:: Re: [DNG] OT: Damned phones
Pàgina inicial
Delete this message
Reply to this message
Autor: viverna
Data:  
A: dng
Assumpte: Re: [DNG] OT: Damned phones
il devuanizzato capercally.bleery670@??? <capercally.bleery670@???> il 03-03-23 18:59:08 ha scritto:
>I am desperately looking for a way to upload files from my Android 12
>phone to my Unix desktop, subject to several constraints:
>
>- no round trip to cloud and back, I can't afford the bandwidth
>- no MTP over USB, too fscking unreliable
>- only libre Android apps (available from F-droid), as there's no
> google account on the phone

You may try Dropbear:
https://f-droid.org/it/packages/org.galexander.sshd/

Mount a remote filesystem using SSH:
sshfs -p2222 -o allow_root root@PHONE_IP:/sdcard/ YOURMOUNTPOINT

Insert the generated password that can be read on the phone screen.

Umount:
fusermount -u YOURMOUNTPOINT

-- 
  _________
< Viverna >
  ---------
        \                    ^    /^
         \                  / \  // \
          \   |\___/|      /   \//  .\
           \  /0  0  \__  /    //  | \ \           *----*
             /     /  \/_/    //   |  \  \          \   |
             @_^_@`/   \/_   //    |   \   \         \/\ \
             //_^_/     \/_ //     |    \    \         \  \
          ( //) |        \///      |     \     \       |  |
        ( / /)  |         //       |      \     _\     |  /
      ( // /)   |          ; -.    |    _ _\.-~       /   /
    (( / / ))   |        _      *-.|.-~-.           .~    ~
   (( // / ))    \      /                 ~-. _ .-~      /
   (( /// ))      `.   }            {                   /
    (( / ))      .----~-.\        \-`                 .~
                 ///.----..<        \             _ -~
                    ///-._ _ _ _ _ _ _{^ - - - - ~