代码说

code is poetry

代码说    
碎碎念:天外有天,用自己抵挡剑尖;天满烽烟,大地汹涌出我的天。 -- 大唐双龙传  换一换

windows连接不上虚拟机中的proftpd

作者:coderzheng 发布于:2013-2-17 11:25 Sunday 分类:linux  阅读模式

主机操作系统: windows xp

虚拟机环境: fedora12 + xampp

xampp安装好并且启动之后, 默认是会运行proftpd的, 命令如下:

# /opt/lampp/lampp start

可以对proftpd进行相关的设置:

#vi /opt/lampp/etc/proftpd.conf

下面是一个配置文件的样码:

# This is a basic ProFTPD configuration file (rename it to
# 'proftpd.conf' for actual use.  It establishes a single server
# and a single anonymous login.  It assumes that you have a user/group
# "nobody" and "ftp" for normal operation and anon.

ServerName                      "ProFTPD"
ServerType                      standalone
DefaultServer                   on

# Port 21 is the standard FTP port.
Port                            21
# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask                           022

# To prevent DoS attacks, set the maximum number of child processes
# to 30.  If you need to allow more than 30 concurrent connections
# at once, simply increase this value.  Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd)
MaxInstances                    30

# Set the user and group that the server normally runs at.
User                            nobody
#Group                          nogroup

# Normally, we want files to be overwriteable.

  AllowOverwrite                on


# only for the web servers content
#DefaultRoot /opt/lampp/htdocs
DefaultRoot ~ ftpusers

# nobody gets the password "lampp"
UserPassword nobody wRPBu8u4YP0CY

# nobody is no normal user so we have to allow users with no real shell
RequireValidShell off

# nobody may be in /etc/ftpusers so we also have to ignore this file
UseFtpUsers off
-- INSERT --
# This is a basic ProFTPD configuration file (rename it to
# 'proftpd.conf' for actual use.  It establishes a single server
# and a single anonymous login.  It assumes that you have a user/group
# "nobody" and "ftp" for normal operation and anon.

ServerName                      "ProFTPD"
ServerType                      standalone
DefaultServer                   on

# Port 21 is the standard FTP port.
Port                            21
# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask                           022

# To prevent DoS attacks, set the maximum number of child processes
# to 30.  If you need to allow more than 30 concurrent connections
# at once, simply increase this value.  Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd)
MaxInstances                    30

# Set the user and group that the server normally runs at.
User                            nobody
#Group                          nogroup

# Normally, we want files to be overwriteable.

  AllowOverwrite                on


# only for the web servers content
#DefaultRoot /opt/lampp/htdocs
DefaultRoot ~ ftpusers

# nobody gets the password "lampp"
UserPassword nobody wRPBu8u4YP0CY

# nobody is no normal user so we have to allow users with no real shell
RequireValidShell off

# nobody may be in /etc/ftpusers so we also have to ignore this file
UseFtpUsers off
UseReverseDNS off
IdentLookups off
最后红色的两行是手动修改上去的, 目的是解决ftp连接主机速度慢的问题, 详细描述如下:
# Slow logins
# This is probably caused by a firewall or DNS timeout. By default ProFTPD will try to do both DNS and ident lookups against the
# incoming connection. If these are blocked or excessively delayed a slower than normal login will result. To turn off DNS and ident

proftpd的配置请参见这里

 

 

标签: linux

你可以发表评论、引用到你的网站或博客,或通过RSS 2.0订阅这个博客的所有文章。
上一篇: linux下proftpd的配置  |  下一篇:linux下禁用SELinux