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.

I am trying to find a way of turning on SSH through terminal, instead of opening settings and turn it on that way. Or perhaps a way to turn SSH on by running a .pkg file?

I am running OS X Lion, but it would be great if it also worked on Snow Leopard!

share|improve this question

2 Answers 2

enable remote login

systemsetup -setremotelogin on

disable remote login

systemsetup -setremotelogin off
share|improve this answer

You may have to sudo:

    sudo systemsetup -setremotelogin on
share|improve this answer

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.