How to enable telnet in 10.2

Aug 19, '03 10:03:00AM

Contributed by: ynolo

It is not recommended. Everyone should use SSH as it is secure. Telenet is not, and anyone monitoring your network traffic could grab your login/password. With that warning aside, sometimes you may have to use Telnet. To do that you need to do the following:

  1. Edit (as root) the inetd.conf file in /etc/ directory by typing sudo pico inetd.conf.
  2. Uncoment this line ...
    #telnet stream tcp nowait root /usr/libexec/tcpd    telnetd 
    ... by removing the # symbol at the start of the line.
  3. Save the file and quit pico.
  4. Restart inetd. To find the PID of inetd, type ps -aux | grep 'inetd'. Find a line in the output that looks like this ...
    root 410 0.0 0.0 1308 44 ?? Ss Wed01AM 0:00.00 inetd 
    
    ... then type sudo kill -9 410, where 410 is the PID as shown in the output above. Then run inetd again with the command sudo inetd. You could do this all at once by typing sudo kill -9 410; sudo inetd
If you want to bypass these steps after you have saved the changes to the inetd.conf file, just simply restart your machine.

That's it.

Comments (14)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20030818084455459