Share files from localhost

This tutorial will explain how to share files directly from your machine and protect the shareable link with username and password.

1. Prepare the files

We have some private pictures that we want to share to our friends without uploading them to the cloud, just share them directly from our machine.

2. Start a file server

loclx tunnel http --subdomain mypics --basic-auth user:pass --file-server /home/pics
After creating the tunnel we can share the link to our friends, they need to enter the username and password for the protected tunnel as follow
Protected Tunnel
If the username and password are correct, they can see the listing of files you shared
List of files
One of the files