Secure SSH on MacOS

In /etc/ssh/sshd_config add the following line:

AllowUsers <username>@<Static IP> and repeat with a space for other allowed IPs in the same form. This will restrict SSH access to your own IP addresses.

Use sudo Nano /etc/ssh/sshd_config

Then Restart the Mac.

Comments

Leave a Reply