I have OpenSSH installed via MacPorts on a macOS 10.14 system. I want to change the port its listening on to something other than 22, and have changed /opt/local/etc/ssh/ssh_config
and uncommented the Port
line like so:
Host *
Port 12345
I then restarted OpenSSH with:
sudo port unload openssh
sudo port load openssh
However I can still only connect on port 22. How do I change the port properly?