Defining a storage server

The storage is a crucial function of the Enterprise Edition. You can transfer and store extracted artifacts on the storage server by using SFTP (SSH File Transfer Protocol) or FTP (File Transfer Protocol). You must have administrator privileges to complete this task.

Before you configure the storage server, you need to install an FTP or an SFTP server first.

Installing an FTP server

To install an FTP server, complete the following steps:
  1. Run the following command to install an FTP server.
    yum install vsftpd ftp
  2. Enable the FTP service.
    Systemctl enable vstpd.service
  3. Edit the vsftpd.conf file, and make sure that local_enable=YES, write_enable=YES, anonymous_enable=YES are mentioned and uncommented. The file is presented in the /etc/vsftpd/vsftpd.conf.
  4. Create an FTP user ID and password.
    useradd userid 
    passwd userid
  5. Enter your new password, and confirm the new password again.
  6. Start the FTP server.
    systemctl start vsftpd.service
  7. Check whether the port 21 is enabled. If not, run the following command to enable the port 21.
    iptables -I INPUT -p tcp --dport 21 -j ACCEPT

Installing an SFTP server

To install an SFTP server, complete the following steps:
  1. Run the following command to check whether SSH is installed.
    rpm -qa|grep ssh
  2. If SSH is not installed, run the following command.
    yum install openssh-server
  3. Open the port 22.
    iptables -I INPUT -p tcp --dport 22 -j ACCEPT
  4. Create a directory and change the authority.
    mkdir -p /data/sftp
    chmod 701 /data
  5. Add a group, and a user for SFTP. Then, provide your new password.
    groupadd sftpusers
    useradd -g sftpusers -d /upload -s /sbin/nologin sftpuser
    passwd sftpuser
  6. Create a directory for the file transfer. Then, make the changes that you need.
    mkdir -p /data/sftpuser/upload
    chown -R root:sftpusers /data/sftpuser
    chown -R sftpuser:sftpusers /data/sftpuser/upload
  7. Add the following lines in the /etc/ssh/sshd_config.
    Match Group sftpuser
    ForceCommand internal-sftp
  8. Restart the SFTP service.
    service sshd restart

Connecting to the FTP or SFTP server

After you install an FTP or an SFTP server, you can go to the Enterprise Edition web user interface, and complete the following steps:
  1. Click Storage on the home page, or click the upper-right settings button to navigate to Storage.
  2. Select the protocol that you want to use.
  3. Enter the qualified hostname of the storage server along with the port and directory.
  4. Enter the credentials of the storage server.
  5. Click Save.