First off, I'm not 100% sure this question is on-topic on StackOverflow, but here you go :

I've set up a home network :

  • 1 wireless router connected to the internet
  • my 2 Macs connected to the wireless router

Is there any way I could use SSH to connect from my Mac No 1 to my Mac No 2?

And How?

  • 1
    System Preferences > Sharing, check Remote Login – cfeduke Apr 18 '12 at 3:36
  • 1
    It's off-topic (although arguably "developer tools"), but at least it is a well-enough written question. – pst Apr 18 '12 at 3:41


First, go to System Preferences -> Sharing. Turn on Remote Login (see image).

Then, from a terminal, execute:

$ ssh <machine name>.local

Remote Login

  • Well, what do you mean by Machine name? The computer name of the receiver? I tried that and i'm getting a ssh: Could not resolve hostname drkMBPro: nodename nor servname provided, or not known – Dr.Kameleon Apr 18 '12 at 3:42
  • just fixed it by using drkMBPro.local as my Machine name... That was quite easy; I'm still quite new to Macs... so... Thanks a lot, buddy! :-) – Dr.Kameleon Apr 18 '12 at 3:44
  • 1
    Of the receiver yes. When you turned on sharing on that machine, what did it report (see in the graphic it says: "To log in to this computer remotely, type 'ssh greg@zaphod'"). – Greg Kopff Apr 18 '12 at 3:44
  • Yep, that last one works too. ;-) – Dr.Kameleon Apr 18 '12 at 3:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.