How to change the default SSH port in MacOS using Terminal

This is simple. Open a terminal and follow the steps below. This worked for me on MacOS 10.13.6. Also, brew a great cup of coffee at home for inspiration. Replace both ports 22 with your desired ssh port using a number between 1024 and 32,767 Now you need to restart the services. Be sure to …