I have a setup where I have an OSX machine as a server. OS is OSX El Capitan. One of the services it needs to have is
sshd. The problem I am trying to solve is that when ever I reboot, I need to physically go to the server to log in to get sshd and remoting to start up. How do I get rid of this needless step? I have already enabled both Screen Sharing and Remote Login from Sharing in System Preferences. These settings only seems to affect what happens when at least one user is logged in.
I have figured that
launchd LaunchDaemons, at least in principle, should start regardless of whether there are anybody actually logged in physically. I am not, however, sure whether sshd is set up as LaunchAgent or LaunchDaemon. Also, I suspect you need to create a separate user and group for
sshd if you are going to run it as a LaunchDaemon.
One complicating factor is also FileVault. You could (although I won't if at all possible) set up one user to automatically login. It seems this cannot be done if you have enabled FileVault as it seems to encrypt home directories. This obviously complicates ssh logins. Decryption seems to require logging in physically.
Is this one of the cases that you really need OSX Server for?