Results 1 to 7 of 7

Thread: Difference in LAN paths

  1. #1
    Join Date
    Jun 2007
    Location
    Arizona U.S.A.
    Beans
    5,724

    Difference in LAN paths

    Depending on how the connection is made, I get two different paths to the same file on my VM host machine from the VM:

    The connection path syntax after using Files "Other Locations > connect to server" for initial connection from Ubuntu 20.10 beta VM to host machine:
    Code:
    sftp://192.168.0.116/mnt/data/music/ogg/music-file.ogg
    It works to play the file.

    Typical connection path syntax saved in my old music player playlists, which previously worked:
    Code:
    sftp://dmn@192.168.0.116/mnt/data/music/ogg/music-file.ogg
    This syntax no longer works to access files - it must be changed to the first path above,
    My question is:
    What is the significance of adding dmn@ (username@) into the path vs. leaving it out?

  2. #2
    Join Date
    May 2010
    Beans
    3,232

    Re: Difference in LAN paths

    If you mount the file system using /etc/fstab it will appear as a local folder on your file system, then you won't need to worry about that. The data will appear to be local

  3. #3
    Join Date
    Jun 2007
    Location
    Arizona U.S.A.
    Beans
    5,724

    Re: Difference in LAN paths

    Quote Originally Posted by ActionParsnip View Post
    If you mount the file system using /etc/fstab it will appear as a local folder on your file system, then you won't need to worry about that. The data will appear to be local
    You mean I can use an IP address in /etc/fstab? How would the login to the host be managed if I haven't logged into the VM first?

  4. #4
    Join Date
    May 2010
    Beans
    3,232

    Re: Difference in LAN paths

    Sure if the server has a static IP. You can alternatively use names. Your home router (I'm assuming its a home setup) will do DNS for you but yes, you can use IP addresses in /etc/fstab without issue.

    If you exchange SSH keys then you won't need passwords either.
    https://www.jscape.com/blog/setting-...n-command-line

    Passwords are so clunky

  5. #5
    Join Date
    Jun 2007
    Location
    Arizona U.S.A.
    Beans
    5,724

    Re: Difference in LAN paths

    Quote Originally Posted by ActionParsnip View Post
    Sure if the server has a static IP. You can alternatively use names. Your home router (I'm assuming its a home setup) will do DNS for you but yes, you can use IP addresses in /etc/fstab without issue.

    If you exchange SSH keys then you won't need passwords either.
    https://www.jscape.com/blog/setting-...n-command-line

    Passwords are so clunky
    I don't know the syntax for such an fstab entry to connect to a remote computer - I didn't see any mention of how to connect from fstab in the linked article - it connects with terminal.

    Assuming I could set up the key authentication, could you give an example of an fstab entry, perhaps using the IP and user name in my first post, to connect to root folder of host?

    Not being into networking or servers at all, never tried the key exchange method. In the past, Files remembers the details of how to connect if you choose that option on initial connection.

    I still would like to know the answer to my question in post #1.

    Thanks for helping.

  6. #6
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Difference in LAN paths

    NFS.
    Probably want to use autofs to mount only when requested. Then the storage can be treated like local storage.

    sshfs is another option, but much slower because ssh encryption.

  7. #7
    Join Date
    Jun 2007
    Location
    Arizona U.S.A.
    Beans
    5,724

    Re: Difference in LAN paths

    I edited the playlists with batch replace to correct the paths for a quick fix. Unless I find some guide (with actual examples) to network connection using fstab, I will stick with the bookmarks method I've been using up to now.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •