When it comes to public file sharing on Linux servers, I have some security concerns.
I wonder which tools do you use for file sharing, and how do you maintain security while using them? For instance, do you use protocols like Samba, NFS, or FTP for sharing files? What best practices do you follow to enhance security, such as implementing encryption, access control, or regular audits?
I’d love to hear about your experiences and the strategies that have worked well for you!
Thanks in advance.
1 Like
That is a good question to ask. Actually, i am not into cybersecurity and neither like those areas. However, for file sharing i would suggest setting up a secure webpage and then allowing the ftp connection behind that.
For example, you can code a http page and then encrypt using the Let's Encrypt (ISRG) · GitHub and then behind that put the file connection.
simply move the files to the /var/www folder under a folder and then a encrypted page to log in.
On the same note, if the password is wrong three times then close the connection using the javascript.
const password = document.getelement()
Thank you for this discussion being a member of this community,
Gaurav
1 Like
Hi Gaurav,
Thank you for your detailed response! I appreciate you taking the time to share your approach. Setting up a secure webpage with password protection is an interesting idea, and I can see how it adds an extra layer of security.
It’s still possible that the current solution may not be sufficient to meet all requirements. For instance, It won’t be enough to share media files between a server and a TV or to back up using certain applications, as most of them do not support this method.
Regards.
Hi Serhat,
Thank you agreeing. I was just about to finish a code for a webpage and will post here so that it can be shown how it needs to be done. Showing is better and actually tells that yes this is there. So, i will send that to you and will tell you how to do the same.
In that you can also share the extra files and everything. It is a blank encryption that you can add to the same.
I will share what i think can help you. If you come across something more then let me know also as i want to add that too. I am very eager and interested in learning new approaches if it brings suitable results, which are visible.
I didnt got a chance to open my laptop since morning but now will do it.
Thank you for the discussion,
Gaurav
1 Like
I think it depends on what and with how.
I use Nextcloud as my own Google Drive/Photos solution, and you can share files and folders with that.
But If you are looking for a service like WeTransfer, you need something else.
For media, I use Plex. Works great and most platforms have an app.
I would recommend taking a look at Tteck’s helper scrips, especially if you use Proxmox. (Proxmox VE Helper-Scripts)
It’s a good collection of scrips to deploy LXC containers with numerous different services, like Plex, Nextcloud, Jellyfin, and more.
Maybe there is something there you can try and install yourself, or you even might take a look at Proxmox
1 Like