Installing ftp and telnet on macOS High Sierra (and later versions).

Apparently, ftp and telnet have been removed from macOS High Sierra. Apple claim this is for security reasons.

Both ftp and telnet can be obtained from the GNU inetutils package, which is available in macports.

Given that macports is available on the system, install GNU inetutils by executing:

sudo port install inetutils

An execution of the above commands installs ftp and telnet under /opt/local/bin/