Ever since I got my Mac Book Pro, I have been trying to ssh into it. Unlike Fedora, Ubuntu and RHEL, Macs do not have this ssh switched on by default. Here is the step-by-step procedure for doing so (note that this is for the machine to which you need to connect, not the one from which you would connect) :
Disclaimer: I am a Mac newbie, its only since last one week that I have been using it. The above procedure is what I figured out after some attempts in my Mac Book Pro running OS X. I do not really know if it would be the same for other Macs as well.
- Go to "System Preferences"
- Select "Sharing"
- Unlock the lock symbol at the bottom-left corner
- Check "Remote Login"
- Now close this window and try out ssh-ing to your machine. In case you do not know the IP of your machine, type "ifconfig" in the terminal to get it.
Disclaimer: I am a Mac newbie, its only since last one week that I have been using it. The above procedure is what I figured out after some attempts in my Mac Book Pro running OS X. I do not really know if it would be the same for other Macs as well.