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:
- Run the following command to install an FTP
server.
yum install vsftpd ftp
- Enable the FTP service.
Systemctl enable vstpd.service
- 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.
- Create an FTP user ID and
password.
useradd userid passwd userid
- Enter your new password, and confirm the new password again.
- Start the FTP server.
systemctl start vsftpd.service
- 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:
- Run the following command to check whether SSH is
installed.
rpm -qa|grep ssh
- If SSH is not installed, run the following
command.
yum install openssh-server
- Open the port 22.
iptables -I INPUT -p tcp --dport 22 -j ACCEPT
- Create a directory and change the
authority.
mkdir -p /data/sftp chmod 701 /data
- 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
- 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
- Add the following lines in the
/etc/ssh/sshd_config.Match Group sftpuser
ForceCommand internal-sftp - 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:
- Click Storage on the home page, or click the upper-right settings button to navigate to Storage.
- Select the protocol that you want to use.
- Enter the qualified hostname of the storage server along with the port and directory.
- Enter the credentials of the storage server.
- Click Save.