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:

  1. sudo nano /etc/ssh/ssh_config
  2. Just change the port from 22 to 2222 with this line:
    Port 2222 (not commented out)
  3. sudo launchctl stop com.openssh.sshd

  4. That should stop the service and start it again, but it's still on port 22.

Thoughts? Thanks!

1 Answer 1


I believe you need to edit /etc/ssh/sshd_config for that


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .