Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 stackoverflow.com Apr 18 '12 at 3:54

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

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

1 Answer 1

up vote 4 down vote accepted

Yes.

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

 
discard

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.