Friday, May 28, 2010

How to ssh to Mac

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) :

  1. Go to "System Preferences"
  2. Select "Sharing"
  3. Unlock the lock symbol at the bottom-left corner
  4. Check "Remote Login"
  5. 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.
One could have also modified the ssh configuration file located at /etc/sshd_config for the same. Initially I had also done the same. However the method that I described above is completely GUI based, so even non-geeks can try it out. Besides this interface also allows one to tweak a lot of other things as well.

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.

No comments:

Post a Comment

I'd love to hear from you !