我在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 …