I'm trying to connect to an FTP through a new server by command line, but I am getting the following error: Unknown host. I can access same ftp through other machines. How can I do for allow this server access the FTP. ?
As you've mentioned in your comments, there were two issues:
For the first, modifying the hosts file would have been sufficient.
But, since you can't connect via IP, that means there's no route between the client and the FTP server. If I were to guess, that means you're probably using an intranet address for the FTP server and that your new client is on a different intranet that the server. To create a route from the client to the server will involve either putting the clients and the server on the same network or some port forwarding using either the routers or clients that can see both.