Score:0

Is it possible to configure SAMBA share between ubuntu instance and windows, and if yes how?

us flag

I have ubuntu 20.04 instance on my AWS Lightsail, is it possible to somehow configure samba share? I need to see shared folders on windows (from my PC that is in different network) from ubuntu instance (is it possible via SSH?). How to solve this problem?

kanehekili avatar
zw flag
Reading your question I'd say no problem. Reading your description, I'd say not so easy. You should change the question to "Ubuntu AWS instance" or "Ubuntu Cloud instance".
Score:0
us flag

Instead of using samba consider mounting the folder(s) from the cloud instance using sshfs. This allows you to access the folder as if it were on your pc.

  • ssh is secure
  • easy to set up (at least on a Linux client)

I have only done this on Linux clients, but it seems that Windows supports it. This looks like a good tutorial.

https://www.digitalocean.com/community/tutorials/how-to-use-sshfs-to-mount-remote-file-systems-over-ssh

Score:0
in flag

Yes, this can be done. It will require a lot of maintenance, though, as it is not recommended that you have a Samba share open to the entire Internet. A decent level of access restriction can be enforced with the firewall rules that Amazon has, but any time your IP address changes, the Samba share will become unavailable. This can be resolved programmatically, of course, by configuring something on your local computer to edit the network access rules for the Samba share through Amazon's API, but it quickly becomes a house of cards unless you really enjoy working with networks and APIs.

A simpler solution would be to set up a NextCloud installation. You can then use the various tools available to set up synchronised directories, remote directories via WebDAV, and the like.

One word of advice, though: if you go down this route, be prepared to update the system every week or two, as the older versions are quickly deprecated.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.