Howto install and configure VSFTPd on Centos 6.3 or Redhat 6.3 RHEL

Howto install and configure VSFTPd on Centos 6.3 or Redhat 6.3 RHEL

 

 

 

 

1. Install VSFTPd on Centos or Redhat RHEL

[root@dhcppc51 /]# yum install vsftpd
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: centos-hcm.viettelidc.com.vn
* epel: ftp.tsukuba.wide.ad.jp
* extras: centos-hcm.viettelidc.com.vn
* updates: centos-hcm.viettelidc.com.vn
Setting up Install Process
Resolving Dependencies
–> Running transaction check
—> Package vsftpd.x86_64 0:2.2.2-11.el6 will be installed
–> Finished Dependency ResolutionDependencies Resolved==========================================================================================================================================
Package Arch Version Repository Size
==========================================================================================================================================
Installing:
vsftpd x86_64 2.2.2-11.el6 base 151 kTransaction Summary
==========================================================================================================================================
Install 1 Package(s)

Total download size: 151 k
Installed size: 331 k
Is this ok [y/N]: y
Downloading Packages:
vsftpd-2.2.2-11.el6.x86_64.rpm | 151 kB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : vsftpd-2.2.2-11.el6.x86_64 1/1
Verifying : vsftpd-2.2.2-11.el6.x86_64 1/1

Installed:
vsftpd.x86_64 0:2.2.2-11.el6

Complete!
[root@dhcppc51 /]#

 

2. Install xinetd to manage VSFTPd service

[root@dhcppc51 /]# yum install xinetd
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: centos-hcm.viettelidc.com.vn
* epel: ftp.kddilabs.jp
* extras: centos-hcm.viettelidc.com.vn
* updates: centos-hcm.viettelidc.com.vn
Setting up Install Process
Package 2:xinetd-2.3.14-35.el6_3.x86_64 already installed and latest version
Nothing to do
[root@dhcppc51 /]#

3. Add VSFTPd and xinetd into the boot list

[root@dhcppc51 /]# chkconfig vsftpd on
[root@dhcppc51 /]# chkconfig xinetd on
[root@dhcppc51 /]#

4. Create user for VSFTPd , VSFTPd used user system on Linux

[root@dhcppc51 /]# useradd ngo
[root@dhcppc51 /]# passwd ngo
Changing password for user ngo.
New password:
Retype new password:
passwd: all authentication tokens updated successfully.
[root@dhcppc51 /]#

5. Start Vsftpd

[root@dhcppc51 /]# /etc/init.d/vsftpd restart
Shutting down vsftpd: [FAILED]
Starting vsftpd for vsftpd: [ OK ]
[root@dhcppc51 /]# netstat -ntulalp | grep 21
tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 16172/vsftpd
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 2120/sshd
tcp 0 0 :::22 :::* LISTEN 2120/sshd
[root@dhcppc51 /]#

6. Login FTP server from  Remote server or FTP Client

[root@redhatserver /]# ftp 192.168.1.151
Connected to 192.168.1.151 (192.168.1.151).
220 Welcome to IThelpblog.com FTP Server.
Name (192.168.1.151:root): ngo
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
227 Entering Passive Mode (192,168,1,151,88,24).
150 Here comes the directory listing.
drwx—— 4 0 501 4096 Dec 10 07:08 kevin
drwx—— 4 501 502 4096 Dec 13 02:44 kevin.ngo
drwxrwxr-x 4 502 503 4096 Dec 16 08:23 ngo
drwx—— 26 500 500 4096 Dec 14 18:49 user
226 Directory send OK.
ftp>

That’s all. Thanks for using IThelpblog.com.

 

Tags:  

Leave a reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>