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.
Leave a Reply
You must be logged in to post a comment.