January 13, 2013 · Western Digital WD MyBook

WD MyBook FTPS setup

Before you begin you need to make sure FTP and SSH are enabled on your live book. Doing this is well documented here so I won't go into it. I also posted this in the WD community forums.

  1. Using Putty or your favourite SSH client connect to your mybook and login.

  2. Create a ssl certificate by entering the following command:

openssl req -x509 -nodes -days 365 -newkey rsa:1024 -keyout /etc/ssl/private/vsftpd.pem -out /etc/ssl/private/vsftpd.pem

Fill in the details it asks, when connecting using secure ftp you will see this information you can check to make sure its the right drive you are connecting too.

  1. Edit the ftp config file by typing
    nano /etc/vsftpd.conf

  2. Go to the bottom of the file and enter the following (I have commented the document to explain what it is doing. The comments can be left in as its written in away the live book understands. By default (its a good thing) WD turn off annonymous ftp, the config here does not change that but if you ever turned it on you would be made to use encrpyption. Paste the config in from below:

Turn on SSL

ssl_enable=YES

Allow anonymous users to use secured SSL connections

allow_anon_ssl=YES

All non-anonymous logins are forced to use a secure SSL connection in order to send and receive data on data connections.

force_local_data_ssl=YES

All non-anonymous logins are forced to use a secure SSL connection in order to send the password.

force_local_logins_ssl=YES

Permit TLS v1 protocol connections. TLS v1 connections are preferred

ssl_tlsv1=YES

Permit SSL v2 protocol connections. TLS v1 connections are preferred

ssl_sslv2=NO

permit SSL v3 protocol connections. TLS v1 connections are preferred

ssl_sslv3=NO

Disable SSL session reuse (required by WinSCP)

require_ssl_reuse=NO

Select which SSL ciphers vsftpd will allow for encrypted SSL connections
(required by FileZilla)

ssl_ciphers=HIGH

This option specifies the location of the RSA certificate to use for SSL
encrypted connections.

rsa_cert_file=/etc/ssl/private/vsftpd.pem

  1. Finally save the file and restart ftp by typing:

/etc/init.d/vsftpd restart

Notes on connecting through filezilla:

FileZilla will connect using port 990 when using explicit ftp. Simply change to port 21 and it will work:

Filezilla screenshot

  • LinkedIn
  • Tumblr
  • Reddit
  • Google+
  • Pinterest
  • Pocket
Comments powered by Disqus