我试图获得一个用Perl编写的FTP客户端,使用被动模式从IIS 7.5 FTP服务器传输文件。 我已经按照说明configuration了FTP服务器,并且还configuration了Windows防火墙来允许这种types的stream量。 我已经通过检查确认日志中没有阻塞的数据包来validation防火墙是否正常工作。 我已经validation了FTP控制通道正在端口21上打开。 我相信客户端被IIS告知哪个端口连接到被动模式,而IIS拒绝这个连接。 perl日志看起来像: C:\cygwin\Perl\lib\FMT>perl FTPTest.pl Net::FTP>>> Net::FTP(2.77) Net::FTP>>> Exporter(5.64_01) Net::FTP>>> Net::Cmd(2.29) Net::FTP>>> IO::Socket::INET(1.31) Net::FTP>>> IO::Socket(1.31) Net::FTP>>> IO::Handle(1.28) Net::FTP=GLOB(0x20abac0)<<< 220 Microsoft FTP Service Net::FTP=GLOB(0x20abac0)>>> USER ftpuser Net::FTP=GLOB(0x20abac0)<<< 331 Password required for ftpuser. Net::FTP=GLOB(0x20abac0)>>> PASS …. Net::FTP=GLOB(0x20abac0)<<< 230 User logged in. Net::FTP=GLOB(0x20abac0)>>> CWD /Logs Net::FTP=GLOB(0x20abac0)<<< 250 CWD command successful. Net::FTP=GLOB(0x20abac0)>>> PASV Net::FTP=GLOB(0x20abac0)<<< […]
我试图通过networkingfind解决scheme花了一些时间。 没有帮助。 故事:我有Ubuntu 10.10(Amazon EC2实例)。 ProFTPD版本1.3.2e(最新通过apt-get)。 我没有在服务器和FTP客户端上做任何改变,但突然间我的客户端(FileZilla 3.5.3,TotalCmd)停止通过FTPS连接到服务器。 从Filezillalogin: Status: Connecting to 7x.xxx.xxx.xxx:21… Status: Connection established, waiting for welcome message… Response: 220 ProFTPD 1.3.2e Server (XXX) [7x.xxx.xxx.xxx] Command: AUTH TLS Response: 234 AUTH TLS successful Status: Initializing TLS… Error: GnuTLS error -9: A TLS packet with unexpected length was received. Status: Server did not properly […]
当我尝试创build一个新目录时,突然出现错误550:Filezilla中的权限被拒绝。 前几天我改变了服务器上有关ssl和imap设置的一些设置,但我不认为这已经影响了FTP设置… 无论如何,经过长时间的search,似乎没有任何工作。 主要的想法可能是用户没有权限,但有趣的是我可以: 创build文件 删除文件 删除目录 但不能创build目录。 我在主目录下得到错误“550 Permission denied”,在子目录中出现“550 access_log:No such file or directory”。 任何人都知道错误可能在哪里? 谢谢
[解决:在这篇文章下面的评论后,我发现一个解决scheme:也许是因为caching,服务器没有得到正确的,当我改变数据端口范围。 在IIS中看起来都很好,但在Wireshark中,你可以计算出端口范围不是正确的。 我试图重新启动IIS和FTP服务器,也通过pipe理员命令提示符,但它没有帮助。 我终于重新启动了Windows Server 2012 R2。 重启后,我现在可以连接。]原文: 无法在FTP客户端程序中获取目录列表。 尝试使用被动模式连接到Filezilla: Status: Resolving address of test.domain.dk Status: Connecting to 89.XXX.XXX.XXX:21… Status: Connection established, waiting for welcome message… Status: Connected Status: Retrieving directory listing… Command: PWD Response: 257 "/" is current directory. Command: TYPE I Response: 200 Type set to I. Command: PASV Error: Disconnected from server: […]
我试图设置vsftpd使用我们的域login。 我希望ftp用户能够使用他们的活动目录用户名/密码login,并且能够完全访问/ media / storage / ftp / username。 我使用winbind安装pptp并且工作正常,所以我相信这个问题是vsftpd和pam。 ftp服务器运行并为login提供530。 我打开了对pam模块的debugging,但在syslog中什么也看不到。 Vsftp只在其日志中logging错误的login信息。 /etc/pam.d/vsftpd auth required pam_winbind.so debug /etc/vsftpd.conf文件 listen=YES listen_ipv6=NO connect_from_port_20=YES anonymous_enable=NO local_enable=YES write_enable=YES xferlog_enable=YES idle_session_timeout=600 data_connection_timeout=120 nopriv_user=ftp ftpd_banner=Welcome to Scantiva! Authorized access only! local_umask=022 local_root=/media/storage/ftp/$USER user_sub_token=$USER chroot_local_user=YES secure_chroot_dir=/var/run/vsftpd/empty pam_service_name=vsftpd guest_enable=YES guest_username=ftp ssl_enable=YES allow_anon_ssl=NO force_local_data_ssl=NO force_local_logins_ssl=NO ssl_tlsv1=YES ssl_sslv2=YES ssl_sslv3=YES rsa_cert_file=/etc/ssl/private/vsftpd.pem
我安装了vsftpd,并且在本地访问时一切正常,但是当远程访问文件时我无法查看文件夹。 在我的远程PC中使用filezilla,我得到这个: status: connecting to 192.xxx status: connection established, waiting for welcome message response: welcome command: user admin response: specify pass command: pass **** response: 230 login successful command: opts utf8 on response: 200 always in utf8 mode status: connected status: retrieving directory listing.. command: pwd response: 257 "/var/ftp" command: type I response: 200 switching […]
我想build立一个ftp服务器,用户将上传文件,并将每个文件放在s3存储上,并从ftp服务器上删除。 (服务器在ec2上运行ubuntu) 这是我已经试过的东西,没有成功.. 使用s3fs装载s3存储桶。 我遵循这些说明 ,但最新版本的s3fs中有一个错误,它阻止了它的工作。 这个bug在开发分支上是固定的,但我不想在我的产品上使用不稳定的版本。 使用vsftpd并通过cron使用s3cmd同步来定期同步这些文件。 这种方法的问题是,s3cmd可以在file upload过程中开始运行,并开始同步不完整的文件。 另外s3cmd没有给出任何反馈,它的同步失败,所以我无法知道,如果我可以删除同步命令完成运行后的文件。 使用pure-ftpd的上传脚本function(允许在file upload完成后运行一个脚本),但是我注意到如果file upload在中间失败了,脚本仍然会运行,我无法知道是否上传成功与否。 我已经呆了几天了,而且我在这里不知所措。 任何build议将受到欢迎。
我已经使用HAProxy和2个运行vsftpd FTP服务器成功地build立了一个负载均衡环境。 这是迄今为止的设置: 代理服务器: ftp00 | 192.168.2.135(public,eth0)| 10.11.130.1(private,eth1) Node01: ftp01 | 10.11.130.140 Node02: ftp02 | 10.11.130.141 操作系统 :CentOS 6.6 HA-Proxy :版本1.5.2 2014/07/12 vsftpd :版本2.2.2 ftp00: /etc/haproxy/haproxy.conf #——————————————————————— # GLOBAL CONFIG #——————————————————————— global daemon log 127.0.0.1 local0 info log 127.0.0.1 local1 notice log 127.0.0.1 local5 debug chroot /var/lib/haproxy pidfile /var/run/haproxy.pid maxconn 4000 user haproxy group haproxy […]
我有一个有busybox支持的embedded式系统。 我试图运行一个FTP服务器,所以我可以编辑这些文件并将数据上传到我的embedded式系统。 但是当我跑步 busybox ftpd -w / 它告诉我我需要使用inetd并将其放入conf中。 但是我不想这么做,原因很多。 当我尝试在busybox链接页面给出tcpvd我得到的命令没有定义。 有什么build议么?
看看我的ftp服务器日志文件,我发现很多暴力攻击,其中相同的IP地址尝试100个用户名/密码组合。 有什么我可以做的,让这些蛮力攻击者的生活更难? 如果某个IP有x次失败的login尝试,它会被lockingx次。 服务器是Microsoft Windows Server 2008。