421 Service not available, remote server has closed connection when tried to upload or download a file

ftp> get test.img
local: test.img remote: test.img
227 Entering Passive Mode (127,0,0,1,31,146).
150 Opening BINARY mode data connection for test.img (1073741824 bytes).
421 Service not available, remote server has closed connection
ftp>
tried many thing still can’t get this fixed

Please refer to the following

Please see the below link for reference.


https://bobcares.com/blog/ftp-error-421-service-not-available/