FTP – File transfer protocol is used to transfer files from one host to another over TCP . Configuring ftp server on linux is safe and secure .
In this article we can see how to configure ftp server on centos 6 . please follow the steps.
Configuring ftp server on Centos 6:
Step 1 » Vsftpd is a lightweight FTP server package for Centos (linux) . Startinstalling package by issuing below command.[root@leela ~]# yum -y install vsftpd
1
|
anonymous_enable=YES
|
1
|
anonymous_enable=NO
|
1
|
chroot_local_user=YES
|
[root@leela ~]# mkdir /ftp
Step 4 » Now start creating users for accessing ftp server .
[root@leela ~]# useradd -d /ftp/krizna krizna
[root@leela ~]# passwd krizna
Changing password for user krizna.
New password:
You just created username krizna with home directory /ftp/krizna .
Step 5 » Start vsftpd service by issuing the below command.
[root@leela ~]# service vsftpd start
and type this below command to start ftp server service automatically while booting.
[root@leela ~]# chkconfig --levels 235 vsftpd on
Step 6 » That’s it, Now we can check the FTP access .Create some files in /ftp/krizna folder
[root@leela ~]# touch /ftp/krizna/test
[root@leela ~]# touch /ftp/krizna/test1
[root@leela ~]# touch /ftp/krizna/test2
Troubleshooting :
Disable firewall ( Iptables ) »
Disable Selinux » open the file /etc/selinux/config and find the line
now reboot the server and try again.
If you not able to connect ftp server , Disable the firewall ( iptables ) and selinux service on your ftp server .
Disable firewall ( Iptables ) »
[root@leela ~]# service iptables stop
[root@leela ~]# chkconfig iptables off
SELINUX=enforcing
and replace with
SELINUX=disabled
0 ความคิดเห็น:
แสดงความคิดเห็น