Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

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

1 Answer

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

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.