u/lukmly013 💾 (lemmy.sdf.org)

I like computers, trains, space, radio-related everything and a bunch of other tech related stuff. User of GNU+Linux.
I am also dumb and worthless.
My laptop is HP 255 G7 running Manjaro and Linux Mint.
I own RTL-SDRv3 and RSP1 clone.

SDF Unix shell username: user224

  • 3 Posts
  • 98 Comments
Joined 1 year ago
cake
Cake day: June 17th, 2023

help-circle













  • My lazy way is NGINX with autoindex.

    If it’s to go over untrusted network (e.g.: internet, school network) I use SSH for port forwarding. Lazy encryption.

    Something like this works just fine:

    worker_processes 1;
    daemon off;
    events {
    }
    http {
            default_type application/octet-stream;
            server {
                    root /storage/emulated/0/sharedfile;
                    listen 127.0.0.1:30000;
                    location / {
                          autoindex on;
                    }
            }
    
    }
    

    sharedfile is a directory with the files.
    On remote machine if I am not mistaken

    ssh -L 127.0.0.1:8080:127.0.0.1:30000 username@host
    

    Then just access it in web browser on 127.0.0.1:8080 or whatever port you chose.
    In PuTTY you can find this under “Tunnels”.

    Of course, you need to have SSH server set up as well.