FTP设置被动模式

查看ftp版本。sudo vsftpd -version

1、连上ftp  

sudo ftp 

ubuntu@ip-172-31-22-243:/$ sudo ftp 
ftp> ls
Not connected.
ftp> open 52.81.18.24
Connected to 52.80.180.240.
220 Welcome to Shenhua FTP service! No authorized access is strictly prohibited.
Name (52.80.180.240:ubuntu): ftpname
331 Please specify the password.
Password:*****

230 Login successful.

ftp> quote PASV

227 Entering Passive Mode (172,30,22,23,26,225).

2、FTP显示500 legal PORT command的解决

sudo modprobe ip_nat_ftp

sudo modprobe ip_conntrack_ftp



猜你喜欢

转载自blog.csdn.net/xiaohanshasha/article/details/80667407
今日推荐