How To Set Up vsftpd on CentOS 6
About vsftpd
警告:FTP是天生不安全。如果你必须使用FTP,考虑securing your FTP connection with SSL/TLS。否则,最好use SFTP, a secure alternative to FTP.
vsftpd开头的两个字母,是”very secure”的意思,程序会构建更强大的保护,来抵抗可能的FTP弱点。
Step One-Install vsftpd
你能通过下面的命令行,在你VPS上快速安装vsftpd。
sudo yum install vsftpd
你也需要在客户端安装FTP客户端,这样我们能连接到FPT服务器:
sudo yum install ftp
一旦文件下载完毕,vsftpd会在你的VPS上。一般而言,VPS已经有一系列合理的安全配置。不管怎样,它已经为匿名用户提供访问。
Step Two-Configure VSFTP
一旦VSFTP已经安装,你可以调整配置。
打开配置文件:
sudo vi /etc/vsftpd/vsftpd.conf
你需要修改的一个主要地方,是将Anonymous_enable设为No。
要优先做此改变。vsftp允许匿名用户,未定义用户访问VPS的文件。如果你需要广泛分发信息,这很有用。但是,其他情况下,就要考虑一系列安全问题。
在那之后,取消local_enable选项的备注,将他设为yes。
local_enable=YES
最后将chroot_local_user取消备注。当这一行设为yes时,所有本地用户会被监禁在他们的chroot中,并且拒绝他们访问服务器的任何部分。
重启vsftpd后,完成设置。
sudo service vsftpd restart
为了确保vsftpd在启动时运行,运行chkconfig:
chkconfig vsftpd on
Step Three-Access the FTP server
一旦你安装了FTP服务器,并配置了它,你就能访问它。
你可以再浏览器中输入域名,并使用合适的ID登录,来访问FTP服务器。记住,你只被允许访问user’s home路径。
ftp://example.com
另外,你能通过下面的命令行,访问ftp服务器。
ftp example.com
然后,使用 exit ,退出FTP shell。
How To Set Up vsftpd on CentOS 6的更多相关文章
- Install vsftpd on centos
安装vsftpd程序. sudo yum -y install vsftpd 启动ftp服务. sudo service vsftp start 添加ftp用户,并设置密码. sudo useradd ...
- 阿里云服务器下安装配置 vsftpd —— 基于CentOS 6.3 【简洁版】
原文链接:http://www.tuicool.com/articles/nuiQBja 1.更新yum源 我是直接 yum update 更新的 2.安装vsftp 使用yum命令安装vsftpd ...
- 烂泥:ubuntu下vsftpd虚拟用户配置
本文由ilanniweb提供友情赞助,首发于烂泥行天下 想要获得更多的文章,可以关注我微信ilanniweb. 以前搭建vsftpd都是在centos下,本以为在ubuntu按照以前的步骤搭建即可.可 ...
- 【转】CentOS中vsftp安装、配置、卸载
1. 安装VSFTP yum -y install vsftpd 2. 配置vsftpd.conf文件 # Example config file /etc/vsftpd/vsftpd.conf # ...
- CentOS 常用命令大全
下面,就给大家介绍这些CentOS常用命令. 一:使用CentOS常用命令查看cpu more /proc/cpuinfo | grep "model name" grep &qu ...
- centos架设FTP服务器
1.安装vsftp在这里,我们架设的是虚拟用户,所谓虚拟用户就是没有使用真实的帐户,只是通过某种手段达到映射帐户和设置权限的目的.yum -y install vsftpd在CentOS中,这样就可以 ...
- Setup FTP Server On CentOS, RHEL, Scientific Linux 6.5/6.4/6.3
setsebool allow_ftpd_full_access onsetsebool -P ftp_home_dir on vsftpd (Very Secure File Transport P ...
- CentOS中vsftp安装、配置、卸载
1. 安装VSFTP 1 [root@localhost ~]# yum -y install vsftpd 2. 配置vsftpd.conf文件 [root@localhost ~]# vi /et ...
- (转)Centos搭建FTP服务器
场景:ftp服务器对于在Linux服务器上进行文件操作太方便,在安装软件时候,大的软件也可以先上传再进行安装! 1 搭建FTP服务器 1.1 检查vsftpd 查看是否已经安装vsftpd rpm - ...
随机推荐
- 压测 502 日志报错 upstream timed out (110: Connection timed out)
环境介绍 服务器:centos6.5服务:nginx proxy 问题描述: 压测 开发同事 的开发环境项目没事,但是 线上机器 命中%50 ,大量502 php的某些页面打不开,页面提示gatewa ...
- PetaPoco模糊查询
like '@0' 是错的,应该换成这样 like @0,原因是petapoco会自动把代码解析成'你好' 标签: Sql command = new Sql();command.Append(&q ...
- Android系统自带样式(@android:style/)
在AndroidManifest.xml文件的activity中配置 1.android:theme="@android:style/Theme" 默认状态,即如果theme这里不 ...
- linux 设置网卡
配置网卡 修改/etc/sysconfig/network-scripts/ifcfg-eth0文件,如果有多张网卡,则修改相应的网卡 # vim /etc/sysconfig/network-scr ...
- [SharpMap]二叉树索引
读取shp文件建立二叉树索引的基本思路分析: /// <summary> /// Generates a spatial index for a specified shape file. ...
- Paramiko 模块使用
一.安装,下载 1.下载安装 pycrypto-2.6.1.tar.gz (apt-get install python-dev) 解压,进入,python setup.py build[编译],py ...
- LuaExpat笔记
xml xml是一种格式化数据交换语言, 适用于在网络上不同应用会话. http://www.xml.com/pub/a/98/10/guide0.html exPat 一种C语言实现的 xml 文档 ...
- leetcode-99 Recover_Binary_Search_Tree
题目要求: Two elements of a binary search tree (BST) are swapped by mistake. Recover the tree without ch ...
- 比较Date时间先后
if ([firstDetailSelect compare:secondDetailSelect] == NSOrderedDescending) { [MBProgressHUD showErro ...
- C# 类的介绍,参数传递,各种符号说法
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.T ...