Join our Discord Server
Ajeet Raina Ajeet Singh Raina is a Docker Captain, Community Leader and Arm Ambassador. He is a founder of Collabnix blogging site and has authored more than 550+ blogs on Docker, Kubernetes and Cloud-Native Technology. He runs a community Slack of 8700+ members and discord server close to 2000+ members. You canfollow him on Twitter(@ajeetsraina).

How to setup vsFTP server on Linux?

39 sec read

FTP refers to File Transfer Protocol. By default, Red Hat supports vsftp. If you do minimal RHEL installation, you mightn't have vsftp related RPM packages installed.

ftp

To setup an anonymous ftp server on Red Hat Enterprise Linux, follow these steps:

1. Verify that the vsftpd package is installed.

#rpm -qa |grep vsftpd

If it is not installed, the install it as follows:

RHEL 3 and 4

# up2date -i vsftpd

RHEL 5
# yum install vsftpd

2. Verify the localhost line in /etc/hosts looks like the following:

127.0.0.1 localhost.localdomain localhost

3. Next configure the vsftpd.conf file. NOTE: Back up the vsftpd.conf file

# cd /etc/vsftpd
# cp vsftpd.conf ./vsftpd.conf.ORIG

Using an editor, open the file vsftpd.conf. Uncomment the line
anonymous_enable=YES. Save and quit the vsftpd.conf file.

4. Start the vsftpd service

# service vsftpd start

5. To have the vsftpd service persistent across reboot:

# chkconfig vsftpd on

6. To test the configuration run the following commands:

# ftp localhost

Login with:
username: anonymous
password: root@local

This should show an ftp prompt. Type ‘bye’ to exit to the command prompt.
NOTE: ports 20 and 21 must be opened on the firewall.

Please follow and like us:

Have Queries? Join https://launchpass.com/collabnix

Ajeet Raina Ajeet Singh Raina is a Docker Captain, Community Leader and Arm Ambassador. He is a founder of Collabnix blogging site and has authored more than 550+ blogs on Docker, Kubernetes and Cloud-Native Technology. He runs a community Slack of 8700+ members and discord server close to 2000+ members. You canfollow him on Twitter(@ajeetsraina).

Using FastAPI inside a Docker container

Python has long been a favorite among developers for its simplicity and readability. Over the years, it has found its place in various domains...
Ajeet Raina
5 min read

Comments are closed.

Join our Discord Server