ssh_config changes not taking effect My ultimate goal is to disable password login, as seen here:
Disable password authentication on SSH server on OS X Server 10.8

But I suspect the changes I'm making to /etc/ssh/ssh_config aren't taking effect. Here are my steps:


sudo nano /etc/ssh/ssh_config 
Just change the port from 22 to 2222 with this line:
Port 2222 (not commented out)
sudo launchctl stop com.openssh.sshd
That should stop the service and start it again, but it's still on port 22.


Thoughts? Thanks!
I believe you need to edit /etc/ssh/sshd_config for that