fix: launchctl load before kickstart for SSH and screen sharing on macOS 26#32
Closed
celanthe wants to merge 2 commits into
Closed
fix: launchctl load before kickstart for SSH and screen sharing on macOS 26#32celanthe wants to merge 2 commits into
celanthe wants to merge 2 commits into
Conversation
…g on macOS 26 launchctl enable fails on a fresh VM because the service isn't yet bootstrapped into launchd. Switching to launchctl load -w registers and enables the service in one step, after which kickstart works. Verified on macOS 26.5.1: ssh.plist is present with label com.openssh.sshd. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Without ServerAliveInterval, a silent VM left the SSH call hanging indefinitely. The step now fails within ~90 seconds of the VM going silent, and hard-kills at 15 minutes regardless. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Contributor
Author
|
Closing - the SSH keepalive and timeout changes from this PR are now included in #33. The setup.sh changes here were superseded by changes already on main (launchctl enable approach for macOS 26 was already correct there). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
launchctl enable system/com.openssh.sshdfails withcould not find serviceon a fresh VM because the service isn't bootstrapped into launchd yet.launchctl enablerequires the service to already be registered.launchctl enablewithlaunchctl load -w, which registers and enables the service in one step.launchctl kickstartthen starts it immediately.launchctl load -w, withkickstartonly on macOS 26+.Verified on macOS 26.5.1:
ssh.plistis present at/System/Library/LaunchDaemons/ssh.plistwith labelcom.openssh.sshd.Test plan
setup/setup.shon a fresh macOS 26 VM and confirm SSH is accessible after completion🤖 Generated with Claude Code