LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 629|回复: 3

vsftp 急救!!

[复制链接]
发表于 2005-10-29 02:42:57 | 显示全部楼层 |阅读模式
使用 vsftpd 出现 下列信息, 小弟新人一个,不知道怎么办~
我用的是FC4


[root@host hooxin]# ftp 172.16.43.26
ftp: connect: Connection refused

下面是我的配置文件:
  1. # loosens things up a bit, to make the ftp daemon more usable.
  2. # Please see vsftpd.conf.5 for all compiled in defaults.
  3. #
  4. # READ THIS: This example file is NOT an exhaustive list of vsftpd options.
  5. # Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's
  6. # capabilities.
  7. #
  8. # Allow anonymous FTP? (Beware - allowed by default if you comment this out).
  9. anonymous_enable=YES
  10. #
  11. # Uncomment this to allow local users to log in.
  12. local_enable=YES
  13. #
  14. # Uncomment this to enable any form of FTP write command.
  15. write_enable=YES
  16. #
  17. # Default umask for local users is 077. You may wish to change this to 022,
  18. # if your users expect that (022 is used by most other ftpd's)
  19. local_umask=077
  20. #
  21. # Uncomment this to allow the anonymous FTP user to upload files. This only
  22. # has an effect if the above global write enable is activated. Also, you will
  23. # obviously need to create a directory writable by the FTP user.
  24. #anon_upload_enable=YES
  25. #
  26. # Uncomment this if you want the anonymous FTP user to be able to create
  27. # new directories.
  28. #anon_mkdir_write_enable=YES
  29. #
  30. # Activate directory messages - messages given to remote users when they
  31. # go into a certain directory.
  32. dirmessage_enable=YES
  33. #
  34. # Activate logging of uploads/downloads.
  35. xferlog_enable=YES
  36. #
  37. # Make sure PORT transfer connections originate from port 20 (ftp-data).
  38. connect_from_port_20=YES
  39. #
  40. # If you want, you can arrange for uploaded anonymous files to be owned by
  41. # a different user. Note! Using "root" for uploaded files is not
  42. # recommended!
  43. #chown_uploads=YES
  44. #chown_username=whoever
  45. #
  46. # You may override where the log file goes if you like. The default is shown
  47. # below.
  48. xferlog_file=/var/log/vsftpd.log
  49. #
  50. # If you want, you can have your log file in standard ftpd xferlog format
  51. xferlog_std_format=YES
  52. #
  53. # You may change the default value for timing out an idle session.
  54. #idle_session_timeout=600
  55. #
  56. # You may change the default value for timing out a data connection.
  57. #data_connection_timeout=120
  58. #
  59. # It is recommended that you define on your system a unique user which the
  60. # ftp server can use as a totally isolated and unprivileged user.
  61. #nopriv_user=ftpsecure
  62. #
  63. # Enable this and the server will recognise asynchronous ABOR requests. Not
  64. # recommended for security (the code is non-trivial). Not enabling it,
  65. # however, may confuse older FTP clients.
  66. #async_abor_enable=YES
  67. #
  68. # By default the server will pretend to allow ASCII mode but in fact ignore
  69. # the request. Turn on the below options to have the server actually do ASCII
  70. # mangling on files when in ASCII mode.
  71. # Beware that turning on ascii_download_enable enables malicious remote parties
  72. # to consume your I/O resources, by issuing the command "SIZE /big/file" in
  73. # ASCII mode.
  74. # These ASCII options are split into upload and download because you may wish
  75. # to enable ASCII uploads (to prevent uploaded scripts etc. from breaking),
  76. # without the DoS risk of SIZE and ASCII downloads. ASCII mangling should be
  77. # on the client anyway..
  78. #ascii_upload_enable=YES
  79. #ascii_download_enable=YES
  80. #
  81. # You may fully customise the login banner string:
  82. #ftpd_banner=Welcome to blah FTP service.
  83. #
  84. # You may specify a file of disallowed anonymous e-mail addresses. Apparently
  85. # useful for combatting certain DoS attacks.
  86. #deny_email_enable=YES
  87. # (default follows)
  88. #banned_email_file=/etc/vsftpd/banned_emails
  89. #
  90. # You may specify an explicit list of local users to chroot() to their home
  91. # directory. If chroot_local_user is YES, then this list becomes a list of
  92. # users to NOT chroot().
  93. #chroot_list_enable=YES
  94. # (default follows)
  95. #chroot_list_file=/etc/vsftpd/chroot_list
  96. #
  97. # You may activate the "-R" option to the builtin ls. This is disabled by
  98. # default to avoid remote users being able to cause excessive I/O on large
  99. # sites. However, some broken FTP clients such as "ncftp" and "mirror" assume
  100. # the presence of the "-R" option, so there is a strong case for enabling it.
  101. #ls_recurse_enable=YES

  102. #Data_connection_timeout=120
  103. #Accept_timeout=60
  104. #Connect_timeout=60
  105. #Pasv_min_port=50000
  106. #Pasv_max_port=60000
  107. Max_clients=200
  108. Max_per_ip=4
  109. #Idle_session_timeout=600
  110. pam_service_name=vsftpd
  111. userlist_enable=YES
  112. #enable for standalone mode
  113. listen=YES
  114. tcp_wrappers=YES
  115. #listen_address=172.16.43.26
复制代码
发表于 2005-11-9 17:07:20 | 显示全部楼层

兄弟 你看看 用 lftp 命令!

式试 噢! 有可能不是这个文件出错误 而是 /etc/vsftp.conf的事!
回复 支持 反对

使用道具 举报

发表于 2005-11-10 14:57:27 | 显示全部楼层
看一下防火墙iptables中21端口是否打开
回复 支持 反对

使用道具 举报

发表于 2005-11-10 22:52:46 | 显示全部楼层
netstat 里显示21号端口开了没有?
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表