How To Set Up vsftpd on CentOS 6

About vsftpd

Warning: FTP is inherently insecure. If you must use FTP, consider securing your FTP connection with SSL/TLS. Otherwise, it is best to use SFTP, a secure alternative to FTP.

The first two letters of vsftpd stand for "very secure" and the program was built to have strongest protection against possible FTP vulnerabilities.

Step One—Install vsftpd

You can quickly install vsftpd on your virtual private server in the command line:

sudo yum install vsftpd

We also need to install the FTP client, so that we can connect to an FTP server:

sudo yum install ftp

Once the files finish downloading, vsftpd will be on your VPS. Generally speaking, the virtual private server is already configured with a reasonable amount of security. However, it does provide access to anonymous users.

Step Two—Configure VSFTP

Once VSFTP is installed, you can adjust the configuration.

Open up the configuration file:

sudo vi /etc/vsftpd/vsftpd.conf

One primary change you need to make is to change the Anonymous_enable to No:

anonymous_enable=NO

Prior to this change, vsftpd allowed anonymous, unidentified users to access the VPS‘s files. This is useful if you are seeking to distribute information widely, but may be considered a serious security issue in most other cases. After that, uncomment the local_enable option, changing it to yes.

local_enable=YES

Finish up by uncommenting command to chroot_local_user. When this line is set to Yes, all the local users will be jailed within their chroot and will be denied access to any other part of the server.

chroot_local_user=YES

Finish up by restarting vsftpd:

sudo service vsftpd restart

In order to ensure that vsftpd runs at boot, run chkconfig:

chkconfig vsftpd on

Step Three—Access the FTP server

Once you have installed the FTP server and configured it to your liking, you can now access it.

You can reach an FTP server in the browser by typing the domain name into the address bar and logging in with the appropriate ID. Keep in mind, you will only be able to access the user‘s home directory.

ftp://example.com

Alternatively, you can reach the FTP server through the command line by typing:

 ftp example.com

Then you can use the word, "exit," to get out of the FTP shell.

时间: 2025-01-02 14:21:55

How To Set Up vsftpd on CentOS 6的相关文章

阿里云服务器下安装配置 vsftpd —— 基于CentOS 6.3 【简洁版】

原文链接:http://www.tuicool.com/articles/nuiQBja 1.更新yum源 我是直接 yum update 更新的 2.安装vsftp 使用yum命令安装vsftpd #yum install vsftpd -y 3.添加ftp帐号和目录 先检查一下nologin的位置,通常在/usr/sbin/nologin或者/sbin/nologin下. 使用下面的命令创建帐户,该命令指定了/www/wwwroot为用户pwftp的家目录,您可以自己定义帐户名和目录: #u

Install vsftpd on centos

安装vsftpd程序. sudo yum -y install vsftpd 启动ftp服务. sudo service vsftp start 添加ftp用户,并设置密码. sudo useradd -g ftp -s /sbin/nologin ftp-wwwsudo passwd ftp-www 建立ftp-www作为ftp根目录,同时建立子目录incoming作为上传目录.注意,vsftpd新版本要求根目录不能可写. sudo mkdir /var/ftp-www sudo mkdir

centos 卸载vsftpd方法

centos 卸载vsftpd方法 在服务器上安装了vsftpd,配置出错需要卸载vsftpd.卸载vsftpd的命令如下: 1 [[email protected] ~]# rpm -aq vsftpd2 vsftpd-2.0.5-16.el5_5.1 #此处是查找vsftpd的返回结果3 [[email protected] ~]# rpm -e vsftpd-2.0.5-16.el5_5.1 #用rpm -e 查找结果 进行删除就ok了.4 warning: /etc/vsftpd/use

centos 安装 vsftpd

1.安装vsftpd yum -y install vsftpd 2.编辑vsftpd的配置文件 cp /etc/vsftpd/vsftpd.conf /etc/vsftpd/vsftpd.conf-bak echo '' > /etc/vsftpd/vsftpd.conf vi /etc/vsftpd/vsftpd.conf 添加如下内容: listen=YESbackground=YESanonymous_enable=NOlocal_enable=YESwrite_enable=YESlo

烂泥:ubuntu下vsftpd虚拟用户配置

本文由ilanniweb提供友情赞助,首发于烂泥行天下 想要获得更多的文章,可以关注我微信ilanniweb. 以前搭建vsftpd都是在centos下,本以为在ubuntu按照以前的步骤搭建即可.可是实际情况告诉我是,我太想当然了.经过一番的折腾终于把ubuntu下vsftpd虚拟用户的配置搞定了,下面就把我的配置步骤贴出来供得为参考. 一.业务要求 现在要求创建一个FTP账号ailanni,该账号只能登录到/www目录下,不能切换到上级目录.同时处于安全考虑还要求该账号上传的文件权限为644

centos和redhat vsftp安装和设定

1.安装vsftp yum install vsftpd 2.配置vsftp 配置文件在 /etc/vsftpd/vsftpd.conf,建议把匿名登录关闭 anonymous_enable=NO 3.设置vsftp为开机启动 chkconfig vsftpd on 通过chkconfig –list可以查看哪些是开机启动的 4.通过useradd ftpuser 添加用户 5.建立ftp用户目录,改变目录所属用户为前面前的用户 6.修改/etc/vsftpd/vsftpd.conf, 添加 u

vsftpd快速配置及配合mysql认证登录

vsftpd vsftpd 是"very secure FTP daemon",安全性是它的一个最大的特点,下面来看一下vsftpd的快速配置. vsftpd主要的配置文件: /etc/pam.d/vsftpd                /etc/vsftpd                /etc/vsftpd/ftpusers                /etc/vsftpd/user_list                /etc/vsftpd/vsftpd.conf

CentOS中vsftp安装与配置

1. 安装使用chkconfig --list来查看是否装有vsftpd服务:使用yum命令直接安装:yum -y install vsftpd然后为它创建日志文件:touch /var/log/vsftpd.log 2.建立ftp用户及主目录:    # mkdir /var/ftp    # useradd -d /var/ftp ftp 3. 配置vsftp服务编辑/etc/vsftpd/vsftpd.conf文件,配置vsftp服务:#vi /etc/vsftpd/vsftpd.conf

Linux学习笔记—— 基于CentOS创建私有CA及应用

这篇文章应该是有史以来,历时最长最纠结的一次,毫不夸张的讲总结到词穷的地步了.现在每次一到理论知识梳理的过程,总有种茶壶里的饺子,稍微懂点但有说不出来,哎!这辈子估计当不了老师了,话不多说还得撸起袖子接着写不是. 第一章.详细描述一次加密通讯的过程,结合图示最佳. HTTPS在基于SSL建立会话前,会经历4次握手过程以获取会话密钥.流程如下: 图示1 HTTPs 通讯流程详细说明 1. 客户端请求(ClientHello) 客户端向服务器发送会话请求,这一步称为ClientHello.Clien