Bandwagon的配置记录(二) —— ftp文件传输
SSH登录服务器
登录的方法在Bandwagon的配置记录(一) —— kexue上网
配置前的准备
1.新建一个目录( /home/ftp ),以后可以把文件放在这里,这里相当于是个中转站
cd home
mkdir ftp
2.修改目录权限
chmod 777 ftp
开始
1.安装vsftpd
sudo apt-get install vsftpd
2.修改配置文件
sudo vi /etc/vsftpd.conf
配置文件修改方法:
先按 i (进入vi编辑界面),按照如下修改配置文件
# Example config file /etc/vsftpd.conf
#
# The default compiled in settings are fairly paranoid. This sample file
# loosens things up a bit, to make the ftp daemon more usable.
# Please see vsftpd.conf.5 for all compiled in defaults.
#
# READ THIS: This example file is NOT an exhaustive list of vsftpd options.
# Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's
# capabilities.
#
#
# Run standalone? vsftpd can run either from an inetd or as a standalone
# daemon started from an initscript.
listen=NO
#
# This directive enables listening on IPv6 sockets. By default, listening
# on the IPv6 "any" address (::) will accept connections from both IPv6
# and IPv4 clients. It is not necessary to listen on *both* IPv4 and IPv6
# sockets. If you want that (perhaps because you want to listen on specific
# addresses) then you must run two copies of vsftpd with two configuration
# files.
listen_ipv6=YES
#
# Allow anonymous FTP? (Disabled by default).
anonymous_enable=NO
#
# Uncomment this to allow local users to log in.
local_enable=YES
#
# Uncomment this to enable any form of FTP write command.
write_enable=YES
#
# Default umask for local users is 077. You may wish to change this to 022,
# if your users expect that (022 is used by most other ftpd's)
local_umask=022
#
# Uncomment this to allow the anonymous FTP user to upload files. This only
# has an effect if the above global write enable is activated. Also, you will
# obviously need to create a directory writable by the FTP user.
#anon_upload_enable=YES
#
# Uncomment this if you want the anonymous FTP user to be able to create
# new directories.
#anon_mkdir_write_enable=YES
#
# Activate directory messages - messages given to remote users when they
# go into a certain directory.
dirmessage_enable=YES
#
# If enabled, vsftpd will display directory listings with the time
# in your local time zone. The default is to display GMT. The
# times returned by the MDTM FTP command are also affected by this
# option.
use_localtime=YES
#
# Activate logging of uploads/downloads.
xferlog_enable=YES
#
# Make sure PORT transfer connections originate from port 20 (ftp-data).
connect_from_port_20=YES
#
# If you want, you can arrange for uploaded anonymous files to be owned by
# a different user. Note! Using "root" for uploaded files is not
# recommended!
#chown_uploads=YES
#chown_username=whoever
#
# You may override where the log file goes if you like. The default is shown
# below.
xferlog_file=/var/log/vsftpd.log
#
# If you want, you can have your log file in standard ftpd xferlog format.
# Note that the default log file location is /var/log/xferlog in this case.
xferlog_std_format=YES
#
# You may change the default value for timing out an idle session.
#idle_session_timeout=600
#
# You may change the default value for timing out a data connection.
#data_connection_timeout=120
#
# It is recommended that you define on your system a unique user which the
# ftp server can use as a totally isolated and unprivileged user.
#nopriv_user=ftpsecure
#
# Enable this and the server will recognise asynchronous ABOR requests. Not
# recommended for security (the code is non-trivial). Not enabling it,
# however, may confuse older FTP clients.
#async_abor_enable=YES
#
# By default the server will pretend to allow ASCII mode but in fact ignore
# the request. Turn on the below options to have the server actually do ASCII
# mangling on files when in ASCII mode.
# Beware that on some FTP servers, ASCII support allows a denial of service
# attack (DoS) via the command "SIZE /big/file" in ASCII mode. vsftpd
# predicted this attack and has always been safe, reporting the size of the
# raw file.
# ASCII mangling is a horrible feature of the protocol.
#ascii_upload_enable=YES
#ascii_download_enable=YES
#
# You may fully customise the login banner string:
ftpd_banner=Welcome to blah FTP service.
#
# You may specify a file of disallowed anonymous e-mail addresses. Apparently
# useful for combatting certain DoS attacks.
#deny_email_enable=YES
# (default follows)
#banned_email_file=/etc/vsftpd.banned_emails
#
# You may restrict local users to their home directories. See the FAQ for
# the possible risks in this before using chroot_local_user or
# chroot_list_enable below.
#chroot_local_user=YES
#
# You may specify an explicit list of local users to chroot() to their home
# directory. If chroot_local_user is YES, then this list becomes a list of
# users to NOT chroot().
# (Warning! chroot'ing can be very dangerous. If using chroot, make sure that
# the user does not have write access to the top level directory within the
# chroot)
chroot_local_user=YES
chroot_list_enable=YES
# (default follows)
chroot_list_file=/etc/vsftpd.chroot_list
#
# You may activate the "-R" option to the builtin ls. This is disabled by
# default to avoid remote users being able to cause excessive I/O on large
# sites. However, some broken FTP clients such as "ncftp" and "mirror" assume
# the presence of the "-R" option, so there is a strong case for enabling it.
#ls_recurse_enable=YES
#
# Customization
#
# Some of vsftpd's settings don't fit the filesystem layout by
# default.
#
# This option should be the name of a directory which is empty. Also, the
# directory should not be writable by the ftp user. This directory is used
# as a secure chroot() jail at times vsftpd does not require filesystem
# access.
secure_chroot_dir=/var/run/vsftpd/empty
#
# This string is the name of the PAM service vsftpd will use.
pam_service_name=vsftpd
#
# This option specifies the location of the RSA certificate to use for SSL
# encrypted connections.
rsa_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
rsa_private_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
ssl_enable=NO#
# Uncomment this to indicate that vsftpd use a utf8 filesystem.
utf8_filesystem=YES
3.保存并退出
按ESC
输入:wq
按回车
4.重启服务器,重新加载配置文件
sudo /etc/init.d/vsftpd restart
5.添加用户
我们之前已经在/home下建立ftp文件夹了。
添加用户yy(你可以把最后的yy改成你的名字)
sudo useradd -d /home/ftp -M yy
给用户yy设置密码
sudo passwd yy
6.
下载filezilla软件
点击最左上角的按钮,进入站点配置,如下图配置
对照我的***服务器
filezilla的配置如下:
Host:IP address
Port:SSH Port
Protocol:SFTP
user:yy(你刚刚设置的用户名)
password:你刚刚设置的用户名对应的密码
设置完,连接!
注意:
连接也许会有问题,如果有问题,请关注filezilla上面连接的信息,里面会有写为什么连接不上,然后复制信息,搜索学习。
转载于:https://www.cnblogs.com/yongy1030/p/10291960.html
Bandwagon的配置记录(二) —— ftp文件传输相关推荐
- CUBEMX配置STM32实现FTP文件传输以及使用SNTP获取网络时间并写入RTC
CUBEMX配置STM32实现FTP文件传输以及使用SNTP获取网络时间并写入RTC 引言 FTP代码库的移植 Cubemx配置SNTP以及RTC RTC配置方法 SNTP配置方法 FATFS载入RT ...
- 详解“FTP文件传输服务”安装配置实例
"FTP文件传输服务"安装配置实例 家住海边喜欢浪:zhang789.blog.51cto.com 目录 简介 ftp工作原理 常见的FTP服务 Vsftpd服务器的安装 Vsft ...
- Linux 网络服务之FTP 文件传输
Linux FTP 文件传输 --王宇然qq:496488051 实验一:配置匿名上传FTP 1.软件包安装: [root@localhost ~]# cd /misc/cd/Server ...
- asc码转换 linux_Linux网络服务04——FTP文件传输服务
Linux网络服务04--FTP文件传输服务 一.FTP连接及传输模式 1.控制连接:TCP 21,用于发送FTP命令信息 2.数据连接:TCP 20,用于上传.下载数据 3.数据连接的建立类型: ( ...
- Day4:应用层——FTP :文件传输协议、电子邮件(EMail)、DNS(Domain Name System)、P2P应用(一类应用)
加油!偷博人! 一.FTP文件传输协议 向远程主机上传输文件或从远程主机接收文件 客户/服务器模式 客户端:发起传输的一方 服务器:远程主机 ftp: RFC 959 ftp服 ...
- Linux运维系列总结-Linux系统启动过程、WEB工作原理、DHCP工作原理、DNS解析原理、NFS网络文件系统、FTP文件传输协议、PXE+KICKSTART自动安装系统
Linux运维系列总结-Linux系统启动过程.WEB工作原理.DHCP工作原理.DNS解析原理.NFS网络文件系统.FTP文件传输协议.PXE+KICKSTART自动安装系统 1.Linux系统的启 ...
- FTP文件传输服务器(详解)
FTP文件传输服务器 一实验目标 安装配置VSFTP 实战匿名访问VSFTP 实战用户名密码方式访问VSFTP 实战ftp虚拟帐号方式访问VSFTP 二实验环境 FTP服务端xuegod63. ...
- 服务器 域名 ftp文件传输方法 URL http协定 file协定 端口
一.如何发布网页? 要在web上发布网页,需要一个在web上全天候工作的服务器. www.starbuzzcoffe.com www这部分是域中一个特定服务器的名字. starbuzzcoffe.co ...
- 如何使用FTP上传文件(FTP文件传输)
使用FTP上传文件 利用FTP和云服务器进行文件传输首先需要 云服务器配置好FTP环境后,您可以通过: 1.资源管理器 2.第三方软件 与服务器进行文件传输 与服务器进行文件传输时首先要确保服务器安全 ...
最新文章
- 聊聊EIGRP的自动汇总与手工汇总
- access哪个速度快 vfp_大学计算机二级考试,报考哪个科目比较好?
- redux中reducer使用require.context使用技巧
- test_bit、set_bit和clear_bit
- java代码同时下载_java代码实现打包多个文件下载功能
- 北方华创:「8大报表应用场景」助力全方位数字化管理
- 信息学奥赛一本通 1203:扩号匹配问题 | OpenJudge 2.2 2705:扩号匹配问题
- POJ_2456_Agressive_cows_(二分,最大化最小值)
- 20200716每日一句
- 细说ip地址与同一网段
- ARM926EJ-S/ARM920T 协处理器 CP14, CP15详解(转载)
- 用java编写人民币转化为美元_js实现数字转人民币、美元的大写汉字
- 35岁的程序员:第12章,林菲菲
- matlab 双层规划求解,双层规划模型的遗传算法求解的Matlab源码
- 不敢相信!那些真实存在的机器人女友们!
- JavaScript window对象之atob()和btoa()
- Microsoft ODBC Driver 17 for SQL Server: 以前的某个安装需要重新引导计算机以便使更改生效。若要继续,请重新启动计算机,然后再次运行安装程序
- python汇率兑换双向_汇率兑换—python第一课
- Html定义网页背景色
- 新想法 | 按需视觉识别:愿景和初步方案
热门文章
- w7计算机管理哪个是显卡,win7怎么看显卡配置以及win7怎么看电脑完整配置
- python正则表达式多匹配成了断句
- Microsoft Teams 深度使用体验——创建团队
- SSM框架之数据分页,模糊查询
- 深度学习笔记--pytorch从梯度下降到反向传播BP到线性回归实现,以及API调用和手写数据集的实现
- Codevs 3729==洛谷P1941 飞扬的小鸟
- python迭代法求解方程_第一部分:趣味算法入门;第六题牛顿迭代法求一元三次方程的根...
- [转] Android Miracast投屏入门
- 我最欣赏的一句话:天道酬勤
- Java毕业设计_基于javaee创新创业实验室管理系统