421服务不可用,远程服务器已关闭连接

时间:2016-04-26 11:22:24

标签: linux ftp

我在Windows 10笔记本电脑上安装了一台使用Linux的Centos7虚拟机,并且此时正尝试使用命令行从服务器ftp。 ftp'ing的过程在从服务器获取文件到Windows笔记本电脑时起作用,但是当我尝试ftp到vm时,我得到了421错误。

> ftp> open 10.10.10.10
Connected to 10.10.10.10.
220 (vsFTPd 3.0.2)
Name (10.10.10.10): userid
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> asc
200 Switching to ASCII mode.
ftp> passive
Passive mode off.
ftp> get filename.stg
local: filename.stg remote: filename.stg
421 Service not available, remote server has closed connection

我关闭了被动模式(我认为这会将其更改为活动模式),因为这是我建议管理员做的事情,以使filezilla工作 - 从笔记本电脑到服务器。无论如何,如果我关闭或打开被动模式,我仍然会得到相同的错误。 我已经停止/禁用了firewalld并运行相同的代码但得到了相同的结果,并且还将端口21 / tcp添加到firewalld中的公共和受信任区域,认为防火墙正在停止正在传输的文件。 VM正在使用两个适配器 - 仅主机适配器和NAT。 虚拟机上的某些东西阻止了这个过程,但不确定在哪里引起关注。

0 个答案:

没有答案