How to enable Telnet and SSH in Mac OS

Enable Telnet
This post shows how to enable Telnet and SSH in Mac OS X.
To Enable Telnet, issue the following command (Open the Terminal and issue)
$] sudo launchctl load -w /System/Library/LaunchDaemons/telnet.plist
This will enable Telnet, and to check its working, try this
$] telnet localhost
To disable Telnet, issue the following command
$] sudo launchctl unload -w /System/Library/LaunchDaemons/telnet.plist
Enable SSH
To enable SSH, in the Mac OS X,
Open System Preferences -> Sharing -> Remote Login (Put the Tick Mark)

Once enabled, these machines can be connected remotely using their IP Addresses. Both these things works only when the port 22 and 23 are unblocked by the firewall
To check Telnet is working or not
$] telnet localhost
supply the username and password (you are connected..)

Comments

Popular Posts