To Set Up SSH on MacOS Systems

  1. Open System Preferences and click Sharing.

    The Sharing window opens.

  2. Ensure that Remote Login is selected in the Service list.

  3. Ensure that either of the following is allowed access:

  4. (MacOS 10.6 systems only) Ensure that the SSH server daemon sshd allows password authentication.

    On MacOS 10.5 systems, the SSH server daemon sshd allows password authentication by default. However, on MacOS 10.6 systems, the SSH server daemon sshd disallows password authentication by default.

    1. Edit the configuration file /etc/sshd_config to set the PasswordAuthentication option to yes.

    2. Stop the SSH server daemon sshd.

      $ sudo launchctl stop com.openssh.sshd
      
    3. Start the SSH server daemon sshd.

      $ sudo launchctl start com.openssh.sshd
      

Next Steps

After you have completed the setup of SSH on a host, test the setup on the host as explained in Testing the SSH Setup on a Host.