5 Replies Latest reply: Sep 11, 2011 5:24 AM by aeberbach
stevefromspring Level 1 Level 1 (0 points)

How do you enable Telnet Server in Lion? I need to be able to telnet to 127.0.0.1 and it says connection refused when I try it.


MacBook Pro, Mac OS X (10.7)
  • CT Level 6 Level 6 (16,495 points)

    Ah. Telnet. Memories.

     

    Maybe this?

     

    http://support.apple.com/kb/TA20443

  • stevefromspring Level 1 Level 1 (0 points)

    I have tried the pre 10.7 support articles already and they do not seem to work in Lion. It appears that they have moved things around a bit. I believe it has something to do with the plist file, but I am not 100% sure yet.

     

    /System/Library/LaunchDaemons/telnet.plist

  • stevefromspring Level 1 Level 1 (0 points)

    Figured it out finally...

     

    You have to su to root, then run "launchctl" and then the prompt changes. Use the load command with the -F switch to force enable the disabled service.

     

    SJ-MBP:~ stevejordan99$ su root

    Password:

    sh-3.2# launchctl

    launchd% load -F /System/Library/LaunchDaemons/telnet.plist

    launchd% exit

    sh-3.2# telnet 127.0.01

    Trying 127.0.0.1...

    Connected to localhost.

    Escape character is '^]'.

    login: root

    Password:

    Last login: Thu Aug 11 17:30:21 on console

    SJ-MBP:~ root#

  • Marc Wilson Level 4 Level 4 (1,045 points)

    stevefromspring wrote:

     

    How do you enable Telnet Server in Lion? I need to be able to telnet to 127.0.0.1 and it says connection refused when I try it.

     

    You don't need to telnet to localhost on your box.  If you think you do, you are mistaken.

     

    Having said that, what problem are you actually trying to solve, so that someone can help you?

  • aeberbach Level 1 Level 1 (0 points)

    Thanks Steve, that solved a big problem for me - I am developing a bit of terminal emulation software and since I wasn't able to find anyone offering a running vttest on an open telnet destination, I actually do need to telnet to localhost on my box - where I can run vttest.