Do you use SSH to securely connect to your Mac remotely via command line or a remote desktop app that connects through a secure tunnel? Chances are, you are using the default SSH port of 22, which is very insecure. I wanted to share a great little script I found on Github that will allow you to update your port to a non-standard port very easily.

https://github.com/MacMiniVault/Mac-Scripts/tree/master/sshport

All you have to do is enter the following single line of code into terminal.

bash <(curl -Ls http://git.io/_9fF7g)

After that, you just enter the port number you want to use and you are done. The script takes care of restarting the SSH service. It is super easy, and saves you the time of having to manually edit system files.