Linux下ftp服务器安装与配置实验报告,包含实验步骤,实验结果以及总结

GNU nano 2.5.3

File: /etc/vsftpd. conf

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

H mangling on files when in ASCII mode

Beware that on some FTP servers, ASCII support allows a denial of service

ttack (Dos) via the command"SIZE /big/file"in ASCII mode. vsftpd

redicted this attack and has always been safe, reporting the size of the

raw file

H ASCII angling 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

tly

useful for combatting certain Dos attacks

#deny email enable=YES

#(default follows)

#banned_email_file=/etc/vsftpd banned_emails

G Get Help o Write Out

here Is K Cut Text

Justify

对其中一些配置进行重写1按贩房:

1)禁止名访问

Allow anonymous FTP? (Disabled by default)

anonymous enable=No

2)允许本地访问

Uncomment this to allow local users to log in

local enable=yeS

3)修改写入权限

Uncomment this to enable any form of FTP write command

write enable=yes

4)修改欢迎页信息

t You may fully customise the login banner string:

#ftpd_banner=Welcome to DongTao's FTP service

5)设置p服务器在U1butu下的根目录1加在文件尾

#set local root

local_root=/ftp

修改完成接Cm+X保存设置后烬

7)注意

配置后要注释掉 etc//pam. d/vsf中的一句命令,否则用新添加的用户

名访问服务器时会报错。

dongtaodubuntu: s ftp 192.168.. 128

COnnected to 192.168.111.128

220( VSFTPd3.0.3)

Name(192. 168.111. 128: dongtao): dongyong

331 Please specify the password

Password

530 Login incorrect

Login failed

dongtaogubuntu: /etcs sudo nano pam.d/vsftpd

#auth

require

d

pam sheLLs. so

注释掉后就可以正常登录

配置完成重启服务器

dongtao@ubuntu: /etcs sudo service vsftpd restart

3.创建用户并设置密码

dongtaogubuntu: - s sudo useradd -d -/ftp-M dongyong

dongtao@ubuntu: -S sudo passwd dongyong

Enter new UNIX password:

Retype new UNIX password:

passwd: password updated successfully

dongtaoaubuntu: s

4.太地登录服务器(在配置服务器过程中,配置文件默认|ca/enab/e=yEs

先查看批服务器的地址,即 Ubuntu的|P

dongtao@ubuntu: /etcs ifconfig

e0s33

Link encad Ethernet HWwaddr 00: 0c: 29: b5: 74 e4

inet6adr:feo:7e97:5a32:b561:4464/645ope: Link esk:25255.255.0

inet addr:192.168.111.129 Bcast:192.168.111.255Ma

UP BROAdCASt RUNNING MULTICAST MT:1500 Metric

RX Packets: 44832 errors: 0 dropped: 9 overruns: o frame: 0

TX Packets: 18543 crrors: 0 dropped: 9 overruns: 0 carrier: 0

collisions:0 txqueuelen: 1000

RX bytes:56805164(5.8MB) Tx bytes:1530251(1.5MB)

lo

Link encap: Local Loopback

Lnet add:127.0.0.1Mask:255.0.0.3

inet addr:: 1/128 Scope: Host

UP LOOPBACK RUNNING MTU: 65536 Metric:1

RX packets: 2301 errors: o dropped: 0 overruns: 0 frane: 0

TX Packets: 2301 errors: o dropped: 0 overruns: 0 carrier: 0

colLisions: o txqueueLen: 1000

Rx bytes:261040(261.6KB) Tx bytes:201040(201.0KB)

ping连接状况,可以看到是可以通信的。

dongtao@ubuntu: /etcs ping 19216B.111.129

PING192.168.111.129(192.168.111.129)56(84) bytes of data.

64 bytes from 192.. 129: icmp seq =1 ttl=64 time=1.97 ms

64 bytes from 192.. 129: icmp seq=2 ttl=64 time=0. 298 ms

64 bytes from 192.168.111.129: icmp seq=3 ttl=64 time=0.168ms

64 bytes from 192.168. 111.129: icmp seq=4 ttl=64 time=0.126ms

64 bytes from 192.168.. 129: icmp seq=5 ttl=64 time0 261 ms

64 bytes from 192. 168. 111. 129: icmp seq=6 ttl=64 time=0. 218 ms

登录服务器:

dongtaogubuntu: /etcs ftp 192.168.111.129

Connected to 192.168.111.129

220( VsFTPd3.0.3)

Name (172. 20.46.78: dongtao): dong yong

331 Please specify the password

Password

230 Login successful

Remote system type is UNIX

sing binary mode to transfer files

ftp> ls

200 PORT command successful. Consider using PASV

150 Here comes the directory listing

drwxrwxr-x

21e

16

40965ep2819:45data

可以看到成功登录,并且什p下有个目录data。

5,{bmtu下与和通信(文件互传

1)在data中创建文件test

dongtaogubuntu: S touch -/ftp/data/test

在家目录下创建文件test1

dongtaogubuntu: S touch -/ftp/data/test

dongtaogubuntu: S touch/test1

2)录1服务器后想要在服务器上上传下载文件,那么就要给成员供访问的

文件夹的一些权限,下面命令给所有用户三种用户如及data子目录

下文件的最高权原。

dongtaoqubuntu: -S sudo chmod-R 777 /ftp/data

登录服务器,将家目录下的test1上传到服务器(先转换到data目录,因为用户对

这个目录有最高权限)

ftp> cd data

250 Directory successfully changed

tp> put test1

local: test1 remote: test1

200 PORT command successful. Consider using PASv

150 ok to send data

226 Transfer complete

test

test1

下载ftp服务器中的test文件

ftp> get test

ocal: test remote: test

200 PORT command successful. Consider using PASV.

150 opening BINARY mode data connection for test (e bytes)

226 Transfer complete

test1

6. Window与Ⅶmtu上和服务器的通信

在 Windows上登录和计服务器失败,需要改变虚拟机的∥P地址,这里我们把细航

记得网络适配器改为桥接方式即可。

获砍阳地址

dongtaogubuntu: /etcs ifconfig

s33

Link encap: Ethernet HWaddr 00: 0c: 29: b5: 74: e4

tnet6ddr:fe8::7e97:5a32:b561:4464/64scpe:Limk55.252.0

inet addr:172.20.46.7 8 Bcast:172.26.47.255Mask:255.255.252.

UP BROADCAST RUNNING MULTICAST MTU: 1500 Metric:1

RX Packets: 47843 errors: 9 dropped: 0 overruns: e frame: 0

TX packets: 18781 errors: 3 dropped: 0 overruns:0 carrier: 0

coLLisions:0 txqucuclcn: 1000

RX bytes:51076117(51.@MB) Tx bytes:1553307(1.5MB

ink encap: Local Loopback

inet addr:127.0.6.1Mask:255.0.0.0

inet addr

/128 Scope: Host

UP LOOPBACK RUNNING MTU:65536 Metric: 1

RX packets: 2489 errors: 0 dropped: 0 overruns: 0 frame: 0

TX packets: 2489 errors: 0 dropped: 0 overruns:0 carrier: 0

collisions: o txqueuelen: 1000

Rx bytes: 215875 (215.B KB) TX bytes: 215875 (215.8 KB)

登录服务器

发涛寿》ft17.20.46.78

172.20.4.78g

Fd3.0.

Always in UTF8 mode

用户(17220.4678(nme): dongyong

B31 Please specify the password

密码

200 PORT command successful. Consider using PASV

Om es the

listin

26 Directory send OK

ftp:收到9字节,用时0.0秒1.50千字节秒

可以看到data中的test文件

200 FORT comm and successful. Consi der using FASY

50 Here comes the directory listing

226 Directory send OK

Etp:收到9字节,用时00秒1.80千字节秒

下载加中的文件

200 PORT command successful. Consider using PAST

50 Opening BIMARY mode data connecti on for test (o bytes)

下载成功

EUrP→PE1u

test

2017/9/2917:59

上传 Windows文件

tp>put C: \Users'lF\Desk top\hiftp txt

T command successful Consider usina

1500k

26 Transfer compl

在服务器上有

Home ftp data

x

x

hiftp. txt

cest

test1

7.注意事项

1若一开始就设置虚拟机网终为桥接模式,则安装印服务器会关败

2配置时要注释掉etc1pam印中的一句命令,否则用新添加的用户

名访问服务器时会报错。

3P配置完成,一定要重启跟务器

四、实验总结

本次实验学会了怎样在 Ubuntu下安装并配置tp服务器,通过ftp服务器实现了

Windows主机与 Ubuntu虚拟机间的通信,深切感受到计算机科学领域的博大精深!

虚拟机上ftp服务器安装与配置文件,Linux下ftp服务器安装与配置实验报告_linuxftp服务器配置实验报告,ftp服务器配置的实验报告...相关推荐

  1. linux nginx权限配置文件,linux下nginx部署以及配置详解

    1.下载源码包解压编译 1.在官网下载使用Xftp上传到linux上(不推荐使用) 2.(推荐)在版本上选好,直接命令下载,如下:(下载nginx-1.16.1.tar.gz版本)建议到home目录执 ...

  2. Linux下Redis服务器安装配置

    说明: 操作系统:CentOS 1.安装编译工具 yum install wget  make gcc gcc-c++ zlib-devel openssl openssl-devel pcre-de ...

  3. 在VM虚拟机上安装Red Hat Enterprise Linux

    在VM虚拟机上安装Red Hat Enterprise Linux 1.点击虚拟机新建按钮创建新的虚拟机 2.安装对应的ios镜像 3.点击下一步后,填写对应信息,如图所示. 4.接着继续下一步 5. ...

  4. Docker虚拟化容器技术(用在虚拟机上),VirtualBox中linux虚拟机联网的问题

    Docker虚拟化容器技术(用在虚拟机上),VirtualBox中linux虚拟机联网的问题 文章目录 前言:安装Docker,则先安装Linux虚拟机(我的CSDN中有发) 一.要解决在Virtua ...

  5. LINUX下的APACHE的配置

    今天写一下LINUX下的APACHE的配置方法. APACHE是作为WEB服务器的.它的优点在于用缓存方式来加快网页的搜索速度. APACHE缺省只支持静态网页 LINUX下有APACHE的RPM包 ...

  6. Linux 下编译并安装配置 Qt

    本文介绍的是Linux 下编译并安装配置 Qt,最近准备做 Nokia 的 Symbian,Maemo 下触摸屏开发.考虑到程序的跨平台可移植性,最终选择使用 Qt 开发.相对来说,国内关于 Qt 相 ...

  7. 让你提前认识软件开发(51):VC++集成开发环境中Linux下Pclint工程的配置方法及常见错误修改

    第3部分 软件研发工作总结 VC++集成开发环境中Linux下Pclint工程的配置方法及常见错误修改 [文章摘要] Pclint是一种C/C++软件代码静态分析工具.它是一种更加严格的编译器,能够发 ...

  8. Linux下Tomcat的安装配置

    Linux下Tomcat的安装配置 一.下载安装对应的jdk,并配置Java环境. 官网下载地址: http://www.oracle.com/technetwork/java/javase/down ...

  9. linux下pptpd的安装配置(×××)

    linux下pptpd的安装配置(×××)--单网卡×××实现 (本文部分内容摘自互联网,特此声明!)          环境介绍:Linux(redhat) 2.6.18 +PPP+PPTPD    ...

最新文章

  1. python怎么读excel文件-Python读写Excel文件方法介绍
  2. Android入门:实现一个File存储的辅助类
  3. yii2地址多级联动
  4. 表单开发(一):获取文本框和密码框数据 用户登录网页
  5. 微信开发系列之二 - 在微信公众号里开发一个自动应答的图灵机器人
  6. 百兆以太网口通信速率_以太网 数据包速率计算方法
  7. java instanceof运算符_Java 中的instanceof 运算符
  8. NTC热敏电阻的时间常数
  9. 深度剖析Java集合之Stack
  10. 配置git mergetool不产生*.orig文件
  11. 警告提示:Capturing ‘self‘ strongly in this block is likely to lead to a retain cycle
  12. Strawberry Perl 所有版本链接
  13. wps两个段落之间间隔太大,将段落中的行距设为0也没用
  14. CF1111C Creative Snap
  15. 什么是AVIF?如何在您的网站上使用AV1图像格式
  16. 288. Unique Word Abbreviation
  17. 流媒体技术介绍(中篇)
  18. php团购实现,团购网站的设计与实现(PHP,MySQL)(含录像)
  19. Mac扫描局域网内连接设备IP及MAC地址并查看对应IP开放端口
  20. 带你一文读懂SaaS版多租户商城系统对多品牌企业的应用价值

热门文章

  1. 华为AR路由器路由策略的简单应用
  2. 直读表为什么在市场上难以开展?
  3. 【小明开发一百问】(一)如何制作手机软件演示视频
  4. 基于Java毕业设计学生用品交换平台源码+系统+mysql+lw文档+部署软件
  5. 多媒体播放声音多路输出
  6. Mindshare:智能电视是最受亚太地区消费者喜爱的智能家居
  7. python : 超参数优化工具笔记 Tune with PyTorch 在PyTorch中使用
  8. UGUI——Graphic
  9. 智能无线路由器硬件连接步骤——以JCG智能无线路由器为例
  10. 电脑百兆网卡和以太千兆网卡有什么区别