Ubuntu – Am I unable to create a shared folder

file-sharingsamba

I have 2 PCs with Linux Mint 17.X and Ubuntu 16.04 respectively. Now I want to share a folder between these 2 PCs. I've followed the following steps :

  1. Right click on the folder I want to share.
  2. Select "Sharing options".
  3. Select "Share this folder" and "Allow others to create and delete files in this folder".
  4. And click "Create share".

After this the folder icon has also been changed. But unfortunately I still can't access it on the other computer.

How to solve this issue? Please help.

Sharing window

Changed folder icon

Best Answer

  • A good way to share a folder between two linux computers is to make one of them an SSH server. You can make the Ubuntu computer an SSH server by installing openssh-server.

    sudo apt install openssh-server
    

    Then you can connect remotely from the other computer via the simple command line tool ssh to log in an run remotely or sftp to transfer files.

    ssh user@IP-adress
    

    or to be able to run GUI application programs remotely

    ssh - X user@IP-adress
    

    or transfer files

    sftp user@IP-adress
    

    for example

    ssh sudodus@192.168.0.2
    

    You can use GUI tools, for example the file browser Nautilus or the dedicated tool Filezilla with the text

    ssh://user@IP-adress
    

    for example

    ssh://sudodus@192.168.0.2
    

    in the box for location of the directory you want to see. You can save it as a bookmark, and manage the remote directory seamlessly.

    enter image description here

    enter image description here

    If you have a Windows computer, you can install Filezilla for Windows or WinSCP and connect to the remote directory in the same way.

    If you are working locally in your own local network behind a firewall you can do it with password authentication, but using keys increases the security if the system is accessed via the internet or if other people have access to the local network. It is also more convenient to use keys because you need not type the password to get access.

    https://help.ubuntu.com/community/SSH

    https://help.ubuntu.com/lts/serverguide/openssh-server.html

  • Related Question