Apple - How to enable telnet server on macOS 10.13.1?
Use ssh. Really - use ssh. But if you insist:
brew install telnetd
I'll leave this up since the typical homebrew services start script isn't implemented on the stable homebrew version. Once that's done, you can:
brew services start telnetd
The brew services needs a file like this in /usr/local/Cellar/telnetd/54.50.1/homebrew.mxcl.telnetd.plist
and possibly the config file in /usr/local/etc/telnetd.conf
or wherever.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>homebrew.mxcl.telnetd</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/sbin/telnetd</string>
<string>--config</string>
<string>/usr/local/etc/telnetd.conf</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
After installing telnetd with Homebrew, as you did, I was able to get it working with:
telnetd -debug [port]
where [port] is replaced with the number of the port on which you want to listen for incoming telnet connections.
By the way, you wrote that you located telnetd in the 'sbin' folder; you may also find a 'share' folder at the same level which contains a man page on telnetd. According to the man page, "[t]he -debug option may be used to start up telnetd manually, instead of through inetd."