Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question

migrated from Apr 18 '12 at 3:54

This question came from our site for professional and enthusiast programmers.

System Preferences > Sharing, check Remote Login – cfeduke Apr 18 '12 at 3:36
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
up vote 5 down vote accepted


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

Then, from a terminal, execute:

$ ssh <machine name>

Remote Login

share|improve this answer
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
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 posting your answer, you agree to the privacy policy and terms of service.

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