CentOS / Red Hat Linux Install VSFTPD FTP Server


How do I install vsftpd?

Simply type the following command as a superuser (root):

# yum install vsftpd

Turn on vsftpd ftp service

Type the following command:

# chkconfig vsftpd on

How do I start vsftpd ftp server?

Type the following command:

# service vsftpd start

How do I stop vsftpd ftp server?

Type the following command:

# service vsftpd stop

How do i restart vsftpd ftp server?

Type the following command:

# service vstfpd restart

Open FTP Port

Open /etc/sysconfig/iptables file, enter:

# vi /etc/sysconfig/iptables

Append following line to open ftp port 21 before REJECT line:

# service iptables start

Test ftp server

Type the following command:

$ ftp localhost

$ ftp ftp.server.com

$ ftp 202.54.1.1

How do I configure vsftpd server?

The default configuration file is /etc/vsftpd/vsftpd.conf file. You can open file with vi text editor:

# vi /etc/vsftpd/vsftpd.conf

See see vsftpd.conf man pages for all configuration options.

$ man vsftpd.conf

Default Directory vsftpd server:

# cd /var/ftp/pub/

Sumber :

http://www.cyberciti.biz/faq/rhel-centos-linux-install-ftp-server/

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s