Discussing sharing on Linux systems
Discussing sharing on Linux systems
I’m facing issues connecting two computers on the same home network. Both have the same account and password. After switching from Windows 10 to Ubuntu 20.04, I enabled sharing and set up folders on each machine. Samba was installed on both systems, and I configured the local network shares in properties. Initially, both could view each other’s folders and edit files freely. However, once they tried to access the other side, login prompts appeared. The interface showed “anonymous” selected with only a grayed-out option, and clicking it would reset to a blank screen. I suspect this might be a Windows-specific problem related to user groups or security settings. I’m looking for a straightforward fix—something simple without complex configurations or third-party tools.
I really dislike being the person who avoids clear instructions for solving issues. Have you considered trying sshfs? While working with samba I faced several challenges—especially around handling high I/O and permissions settings. It’s also quicker, more secure, uses keys instead of passwords, and lets you access drives remotely without a VPN. I’d suggest giving it a shot! For Windows, you’ll need to install openssh-client/server, SSHFS, and WinFSP.
I’m ready to try anything if it helps. I discovered an interesting problem. After adjusting settings to disable sharing, both computers can reach the shared folder on each desktop, but the media folder on the second drive remains inaccessible. I’m looking for a straightforward fix—can’t deal with complex file structures or programs that need to load first.
Then sshfs becomes your reliable ally. It leverages SSH for moving files while preserving the full folder layout. Think of it as a more dependable alternative to Samba, offering improved stability, performance, and safety. Share your SSH keys on both machines if you wish to connect drives and enable sshfs. Run ssh-keygen ssh-copy-id $[email protected] sudo apt-get install sshfs -y You might mount the storage through the command line, but setting it up automatically via fstab is more convenient. I’ll share the configuration settings I use and they should work smoothly for you too. Edit /etc/fstab with your details: $[email protected]:/your/directory /home/$USER/MOUNT fuse.sshfs delay_connect,IdentityFile=/home/$USER/.ssh/id_rsa,idmap=user,port=PORT,rw,uid=1000,gid=1000,nosuid,nodev,_netdev,allow_other,default_permissions 0 0 Replace "$USER" with your name (though it’s not essential). Adjust the path to match your setup, and you should be good. If issues arise, return to the forum for help!
It seems the commands were a bit mixed up. You should use "ssh-copy-id [email protected]" instead of the version with numbers. For the fstab command, you might need to specify the correct IP address and ensure the file path is set properly. When editing fstab, it’s best to adjust one part at a time for easier troubleshooting.
The command will use your current user account and the target machine's IP or hostname by default, without requiring a specific file path.