Install and Configure FTP Server On CentOS 7
Install and Configure FTP Server On CentOS 7
unixmen.com
Install vsftpd
All commands should be run with ‘root’ user. Run the following
command in terminal to install vsftpd package:
yum install vsftpd ftp -y
1 de 9 23/03/18, 7:49 a. m.
Install And Configure FTP Server On CentOS 7 about:reader?url=https://www.unixmen.com/insta...
Configure vsftpd
## Uncomment ##
ascii_upload_enable=YES
ascii_download_enable=YES
By default, root user is not allowed to login to ftp server for security
2 de 9 23/03/18, 7:49 a. m.
Install And Configure FTP Server On CentOS 7 about:reader?url=https://www.unixmen.com/insta...
purpose. So, let us create a normal testing user called “sk” with
password “centos”.
useradd sk
passwd sk
Let us try to log in to the FTP server from my Ubuntu client system.
ftp 192.168.1.101
Sample Output:
Connected to 192.168.1.101.
220 Welcome to UNIXMEN FTP service.
Name (192.168.1.101:sk): sk
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>
3 de 9 23/03/18, 7:49 a. m.
Install And Configure FTP Server On CentOS 7 about:reader?url=https://www.unixmen.com/insta...
4 de 9 23/03/18, 7:49 a. m.
Install And Configure FTP Server On CentOS 7 about:reader?url=https://www.unixmen.com/insta...
5 de 9 23/03/18, 7:49 a. m.
Install And Configure FTP Server On CentOS 7 about:reader?url=https://www.unixmen.com/insta...
In the Active Mode tab, make sure the option “Ask your operating
system for the external ip address” is selected.
Then goto Edit -> Settings -> FTP ->Passive Mode. Select “Fall back to
active mode” and click Ok.
6 de 9 23/03/18, 7:49 a. m.
Install And Configure FTP Server On CentOS 7 about:reader?url=https://www.unixmen.com/insta...
/iptables-config”.
vi /etc/sysconfig/iptables-config
Find the line IPTABLES_MODULES=” “ and change this to
IPTABLES_MODULES=”ip_conntrack_ftp”:
# Load additional iptables modules (nat helpers)
# Default: -none-
# Space separated list of nat helpers (e.g.
'ip_nat_ftp ip_nat_irc'), which
# are loaded after the firewall rules are applied.
Options for the helpers are
# stored in /etc/modprobe.conf.
IPTABLES_MODULES="ip_conntrack_ftp"
[...]
Save the iptables rules and restart firewall:
systemctl restart iptables
Now, try again from Filezilla.
You can access the FTP server from your client browser also. Navigate
7 de 9 23/03/18, 7:49 a. m.
Install And Configure FTP Server On CentOS 7 about:reader?url=https://www.unixmen.com/insta...
8 de 9 23/03/18, 7:49 a. m.
Install And Configure FTP Server On CentOS 7 about:reader?url=https://www.unixmen.com/insta...
9 de 9 23/03/18, 7:49 a. m.