LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   LinuxQuestions.org Member Success Stories (https://www.linuxquestions.org/questions/linuxquestions-org-member-success-stories-23/)
-   -   WD My Cloud access via Internet (https://www.linuxquestions.org/questions/linuxquestions-org-member-success-stories-23/wd-my-cloud-access-via-internet-4175552545/)

TB0ne 09-03-2015 03:19 PM

WD My Cloud access via Internet
 
Have a couple of WD MyCloud units..4TB each, DLNA capable, supporting NFS, Samba/Windows, and SSH out of the box, for about $149 each. Great units. If you have IOS, Mac, Android, or Windows, you can load an app and get access to the device from anywhere, over the Internet, and I've enjoyed this immensely while I travel. Nice to be able to stream ANY of my movies (or download them, if the Wifi is slow), from anywhere.

But there's a catch...there is *NO* Linux desktop app. If you're on the local LAN, no problems. Mount it via CIFS or NFS, and use it like any other drive. I finally figured out how to do this over the Internet. Not hard, but you DO need to do a couple of things.
  1. This is a bit nebulous, but it has to be: allow SSH traffic through your firewall to your LAN, and re-direct it to your WD MyCloud. How you do this is up to you, and will vary wildy depending on your hardware. I assign a non-standard port on the external interface of my network, and re-direct it to port 22, to the address of the MyCloud device.
  2. Enable SSH on your MyCloud, through the web interface. Well documented on their site.
  3. The root user ID is 'root', with a default password of 'welc0me'. Log in with it, and CHANGE IT to be something else.
  4. Make a mount point on your Linux system.
  5. Type in:
    Code:

    sshfs root@11.22.33.44:/DataVolume/shares/Public /mount/point
  6. It will prompt you for a password...enter it. It will then be mounted.
  7. Enjoy.
Obviously, replace the '11.22.33.44' with your external IP address, and the /mount/point with whatever your mount-point is.

Sadly, thus far, I CANNOT make it mount with anything else other than the root user ID. However, since it's end-to-end encrypted, I'll live with it.

metcommradio 10-26-2015 07:39 AM

Great information but I have also found an alternative gui solution work well via file manager (Dolphin in my case).

Set up a new Network Folder via the wizard and, as in TB0ne's example, complete the form as follows :

Select Secure Shell (ssh) - click Next >

Name : Give any name to identify the Folder such as "WDCloud"
User : root
Server : your.own.domain or IP address (I use a no-ip domain name so as to never lose my re-connections which can happen in case of eg. a power outage at the remote site)
Port : 22 (this entered by default)
Protocol : sftp (selected by default)
Folder : /DataVolume/shares/Public
Select Unicode (UTF8) from drop-down box
Tick "Create an icon for this remote folder"

After selecting "Save & Connect" > you will be requested for your remote WDCloud password (eg. welc0me) - see TBOne's comment

If all correct, as with any other local directory, you will see your remote folders in the File Manger window

This is a nice feature, hope it is useful :)


All times are GMT -5. The time now is 03:05 PM.