Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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

1 Answer 1

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 at 14:52
    
FWIW, the router is not blocking port 22. Restarting it fixed the issue. –  B Seven May 2 at 15:22

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.