Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

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

I have been able to connect to OSX machine using ssh client successfully for hours, but then it stops working and I get connection refused.

ps -ax | grep ssh
841 ttys004    0:00.00 grep ssh

Using dynamic IP and the IP is correct. I turned off and on "Remote Login", but it doesn't seem to do anything.

Does there need to be an SSH daemon running on OSX?

How to start it?

OSX 10.7.5

share|improve this question
up vote 1 down vote accepted

If there is no session connected to OSX, there will be no sshd process. Try if this is working:

ssh localhost

If not:

systemsetup -setremotelogin on

If it works, you've got network/firewall problem.

share|improve this answer
Yes, ssh localhost works and I now see the sshd daemon. So now I need to figure out the network issue. Thank you. – B Seven May 2 '14 at 14:52
FWIW, the router is not blocking port 22. Restarting it fixed the issue. – B Seven May 2 '14 at 15:22

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.