Ask Different is a question and answer site for power users of Apple hardware and software. 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

How do I detect failed remote login attempt on my MacBook Pro and how do I block them? My MacBook Pro is on a network with built-in firewall, if that's relevant.

share|improve this question

Login attempts are logged in the file /var/log/secure.log, but there's a lot of other entries in the file also. You could search for lines containing the phrase "Failed to authenticate user" to narrow down the failed login attempts.

In Mac OS X, by default, telnet and rlogin are not enabled at all. As far as ssh is concerned, it can be turned off and on using System Preferences. If you deselect "Remote login" then it should not be possible to ssh into your computer.

enter image description here

share|improve this answer

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.