在 Ec2 上设置我的 vsFtp 服务器后,我遇到了问题,我的客户端是 Filezilla
我收到这个错误
响应:230 登录成功。 命令:OPTS UTF8 ON 响应:200 始终处于 UTF8 模式。 状态:已连接 状态:正在检索目录列表... 命令:PWD 响应:257"/" 命令:I型 响应:200 切换到二进制模式。 命令:PASV 响应:500 OOPS:无效的 pasv_address 命令:端口 10,130,8,44,240,50 响应:500 OOPS:priv_sock_get_cmd 错误:无法检索目录列表 错误:连接被服务器关闭
这是我的vsftpd.conf 中的当前设置
#nopriv_user=ftpsecure #async_abor_enable=YES # ASCII mangling 是协议的一个可怕的特性。 #ascii_upload_enable=YES #ascii_download_enable=YES # 您可以指定一个不允许匿名电子邮件地址的文件。显然 # 用于对抗某些 DoS 攻击。 #deny_email_enable=YES #(默认如下) #banned_email_file=/etc/vsftpd/banned_emails # chroot_local_user=是 #chroot_list_enable=是 #(默认如下) #chroot_list_file=/etc/vsftpd/chroot_list GNU nano 2.0.6 文件:/etc/vsftpd/vsftpd.conf # #ls_recurse_enable=YES # # 当启用“listen”指令时,vsftpd 以独立模式运行,并且 # 侦听 IPv4 套接字。该指令不能结合使用 # 使用 listen_ipv6 指令。 听=是 # # …
我正在尝试使用命令行自动发布 Web 应用程序,但例如默认的 Windows FTP 客户端不支持递归上传/下载。
对于默认的 Windows FTP 客户端,我有哪些替代方案?
我需要将目录 /home/test 的全部内容上传到我的 ftp 服务器的特定文件夹中。 然后我将通过 cron 每小时安排一次脚本。有什么例子吗?
注意。考虑到我使用的是 Netgear ReadyNAS Duo(一个 debian 机器)并且我无法安装 lftp 或类似软件,只能安装标准命令 :)
我有一个客户试图通过 FTP 从 AS400 向我的公司发送数据。客户认为所有用户名和密码都由 AS400 FTP 客户端转换为大写。这对我来说是一个交易破坏者。
除此之外,我希望客户在传输数据时使用临时文件名,然后在传输完成后重命名文件。客户表示这在 AS400 上是不可能的。
这些限制对我来说似乎是假的...... AS400 上必须有 FTP 客户端,它们不会因无法连接到使用区分大小写的用户名或将 FTP 传输状态传回调用程序的服务器而受到影响,但我没有经验在 AS400 平台上,所以我真的没有立足之地来证明我的立场。
任何人都可以推荐具有以下功能的 AS400 上的 FTP 客户端:
我想使用 ftp 将备份档案从一台服务器上传到另一台服务器。在我的备份 cronjob 中,我使用此脚本上传文件:
MEDIAFILE=/var/somedir/somefile.encrypted
if [ -r $MEDIAFILE ]
# File seems to exist and is readable
then
ftp -n $FTPHOST <<END_SCRIPT
quote USER $FTPUSER
quote PASS $FTPPASS
cd backups
put $MEDIAFILE
quit
END_SCRIPT
fi
Run Code Online (Sandbox Code Playgroud)
此脚本返回:/var/somedir/somefile.encrypted: No such file or directory。但是该文件存在并且执行脚本的用户有权读取该文件。
是什么导致了这个错误?
使用被动模式时,如果我们将 pasv_max_port 设置为 10100,将 pasv_min_port 设置为 10090。是否意味着 VSFTP 服务器只能同时为 10 个客户端提供服务?
我们可以为 pasv_max_port 和 pasv_min_port 设置相同的端口号吗?如果可能,VSFTP 服务器可以同时处理多少个客户端?只有一个?
设置:
VSFTPD FTP 服务器
只有 FTP 用户可以访问 FTP
用户主页修改为 /var/www
用户现在只能写访问 /var/www
用户仍然可以浏览文件夹结构 -这是我想要防止的。
换句话说,如何防止 FTP 用户浏览 /var/www 上的任何文件夹?
我的 vsftpd.conf
# 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 …Run Code Online (Sandbox Code Playgroud) 我正在尝试设置对我的 Apache 服务器的 FTP 访问,但我收到一个530 Login Incorrect错误。
我通过sudo apt-get install vsftpd.
我尝试ftp://(my ip address)与我创建的用户连接,该用户andrew属于ftp用户组。我也试过与root. 我确定密码是正确的。
理想情况下,我希望能够连接到我的/var/www/目录以通过 FTP 客户端上传文件。
这是我的vsftpd.conf文件没有注释的样子:
listen=YES
anonymous_enable=NO
local_enable=YES
write_enable=YES
dirmessage_enable=YES
use_localtime=YES
xferlog_enable=YES
connect_from_port_20=YES
chroot_local_user=YES
secure_chroot_dir=/var/run/vsftpd/empty
pam_service_name=vsftpd
rsa_cert_file=/etc/ssl/private/vsftpd.pem
Run Code Online (Sandbox Code Playgroud)
并附有评论:
# 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.
# …Run Code Online (Sandbox Code Playgroud) 对不起,如果这对你来说听起来多余,但相信我不是。我已经尝试了几乎大多数与此问题相关的链接,但到目前为止没有任何效果。我什至尝试了这篇文章二。以下是我迄今为止尝试过的
MindTerm home: /home/waqas/.mindterm/
SSH Server/Alias: 54.191.37.141
Connected to server running SSH-2.0-OpenSSH_6.6.1p1 Ubuntu-2ubuntu2
Server's hostkey (ssh-rsa) fingerprint:
openssh md5: 95:44:f1:40:07:90:00:2a:7d:9a:1f:49:a1:71:8a:0b
bubblebabble: xilon-segen-tufep-manir-rekad-lucag-fetoz-sover-hyhuh-kafiz-kixox
Run Code Online (Sandbox Code Playgroud)
在此问题之前我做的最后一件事是 2 天前我试图使用此链接在我的客户端上安装 FTP 服务器http://www.krizna.com/ubuntu/setup-ftp-server-on-ubuntu-14 -04-vsftpd/ . 不幸的是,这个链接没有按预期工作,我最终没有成功登录 FTP。今天,当我尝试使用我的密钥对登录时,它给了我错误。
以下是我的 ssh 尝试日志
waqas@waqas-itu:~/Downloads/key$ ssh -v -i test.pem ubuntu@54.191.37.141
OpenSSH_6.0p1 Debian-3ubuntu1.2, OpenSSL 1.0.1c 10 May 2012
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: …Run Code Online (Sandbox Code Playgroud) 我刚刚在我的 Windows Server 2012 R2 机器上的 IIS 8.5 中设置了一个 FTP 服务器。
使用 FileZilla 当我尝试使用我的用户名和密码在端口 21 上连接到本地 IP (10.0.0.4) 时,它会连接得很好,但是当我尝试连接外部 IP 时,我收到此错误
服务器发送带有不可路由地址的被动回复。改用服务器地址
这是完整的日志
Status: Disconnected from server
Status: Connecting to 191.23x.xx.111:21...
Status: Connection established, waiting for welcome message...
Status: Insecure server, it does not support FTP over TLS.
Status: Connected
Status: Retrieving directory listing...
Status: Server sent passive reply with unroutable address. Using server address instead.
Command: LIST
Response: 150 Opening BINARY mode data connection.
Error: Connection timed out after …Run Code Online (Sandbox Code Playgroud)