Enable Telnet in MAC OS X Lion
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)
Want to highlight a helpful answer? Upvote!
Did someone help you, or did an answer or User Tip resolve your issue? Upvote by selecting the upvote arrow. Your feedback helps others! Learn more about when to upvote >
Did someone help you, or did an answer or User Tip resolve your issue? Upvote by selecting the upvote arrow. Your feedback helps others! Learn more about when to upvote >
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)
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
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#
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?
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.
Enable Telnet in MAC OS X Lion