【发布时间】:2011-12-18 04:03:11
【问题描述】:
我已经在 AWS 上设置了一个新的 EC2 实例,我正在尝试让 FTP 工作以上传我的应用程序。我已将 VSFTPD 作为标准安装,因此我没有更改配置文件 (/etc/vsftpd/vsftpd.conf) 中的任何内容。
我没有在安全组中设置端口 21,因为我是通过 SSH 进行的。我像这样通过termal登录我的EC2
sudo ssh -L 21:localhost:21 -vi my-key-pair ec2-user@ec2-instance
我打开 filezilla 并登录到本地主机。在列出目录结构之前,一切都很好。我可以登录并正确,一切似乎都很好,如下所示:
Status: Resolving address of localhost
Status: Connecting to [::1]:21...
Status: Connection established, waiting for welcome message...
Response: 220 Welcome to EC2 FTP service.
Command: USER anonymous
Response: 331 Please specify the password.
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 "/"
Command: TYPE I
Response: 200 Switching to Binary mode.
Command: EPSV
Response: 229 Entering Extended Passive Mode (|||37302|).
Command: LIST
Error: Connection timed out
Error: Failed to retrieve directory listing
我的配置文件中是否缺少某些内容。需要设置或关闭的设置。我认为它连接起来很棒,但是当它超时时,你可以想象我的脸。这意味着是时候开始在网上搜索并找到答案了!现在运气不好。
我使用的是标准的 Amazon AMI 64 位。我有一个传统的灯设置。
谁能引导我朝着正确的方向前进?我已经阅读了很多关于如何让这个工作的内容,但它们都不完整,好像他们在输入如何做的过程中感到无聊。
我也很想听听你们是如何做到的。如果它让生活更轻松。您如何将您的应用程序上传到 EC2 实例? (请执行步骤 - 它可以节省大量时间,而且对其他人来说是一个很好的资源。)
【问题讨论】:
标签: ftp ssh amazon-ec2 sftp