Use brew to install ncftp which is a advanced version of the classic command line ftp utility. Follow the instructions in this thread:
ncftp
ftp
Then install with brew install ncftp
brew install ncftp