FTP stuck in 150 ascii after executing command

Hi,

We have 2 linux RH servers (Server A and Server B), that were configured the same way. Same OS version, same ftp client, etc.

The ftp client that we had installe, was downloaded from rpmbone site and the filename is: ftp-0.17-53.el6.x86_64

The permissions were already set up equally, at a firewall level, for both servers. Both are on the same vlan 10.240.194.x/23
The FTP server configuration is unknown to us, because it's own by another company. So far they provided ip, user/passwd and told us to use active mode.

Server A connects to the ftp server without issues. It allows to pwd, ls, change directory and of course upload/download files.

Server B does connect as well. But when we try to list files/directories, find current dir location, or upload/download files we can't. So far the only thing we are able to do, is change to another directory.

Everytime we try, to do at least a simple ls,pwd we get this msg

200 PORT command successful. 
150 Opening ASCII mode data connection.      (it gets stuck here for a couple of seconds)
500 Command not understood.

As far as I understand, that ftp client, which is installed in both servers, doesn't have anything to be changed or configured.

Does anyone has an idea of what could be check/change to make the other server work. Sadly the FTP server, is not owned by our company. I tried to do some search, but haven't been lucky.

Any help is appreciated.

Perhaps the ftp Server doesn't like ascii connections and your Server A defaults to a 'binary' connection at startup.

On both of your ftp clients, after ftp login, enter the 'binary' command and see what it allows you to do. Then enter the 'ascii' command and see what happens when you try to do things. In that way, compare your two ftp client configurations.

Perhaps ask your ftp server admins whether the use of ascii connection is permitted.

1 Like