Install - Stshm/TrFtpd GitHub Wiki

Requirements

Installed node.js

Note:

  • It is tested on v8.9, v6.6, v6.7, v4.6. (for v4.x need to use --use_strict option.)
  • It is tested on ubuntu 16.04 and 17.10, not tested on other plathome.

Install

Decompress archive , keeping directory strucuture, and move the program directory.

First, create public/private key, using OpenSSL command-line. On easy way, type below.

$sh ./mktlskey.sh

Default key files placement is [TrFtpRoot]/etc/

To run ftp server(default contorol port is 8021)

$node trftpd.js

To run Web admin interface

$node ftpwebadm.js

Run web browser, and access to https://localhost:9433

Built in admin user/password is [admin/admin] Built in guest user/password is [guest/guest]

Note:

  • In default configuration, path is specified relatively.

  • In windows if specified absolute path, it dose not work surely.

  • User home directory must be under server root if you use web interface.

  • Default directory layout is below.

      (root)/ -------------- program root directory
    
            /errdoc -------- html documents on error
    
            /etc    -------- configuration files, key files for TLS, passwd and group files
    
            /files/ -------- ftp server root directory
    
                  /public -- Default directory for guest user
    
                  /users  -- General user home directories. The first is empty.
    
            /html   -------- html documents for web admin interface
    
            /logs   -------- access log files