drduh / drduh/YubiKey-Guide

SSH in Mac OS: launchctl commands return "Load failed: 5: Input/output error"

Open
#504 5 comments 2 reactions 1 assignee Claimed by @Danrancan View on GitHub
question
Dominant language
HTML
Stars
12.5k
Forks
1.3k
Avg merge
1d 4h
Merged PRs (30d)
2

Description

In DR.DUH_GUIDE --> SSH --> macOS
I am having some issues with the launchctl commands.
I have created the two files `$HOME/Library/LaunchAgents/gnupg.gpg-agent.plist` and `$HOME/Library/LaunchAgents/gnupg.gpg-agent-symlink.plist`. Then I run the following commands which produce input/output errors:

as normal user (no sudo)
```
Danran@MacBook-Pro ~/Library/LaunchAgents$ launchctl load $HOME/Library/LaunchAgents/gnupg.gpg-agent.plist
Load failed: 5: Input/output error
Try running `launchctl bootstrap` as root for richer errors.
Danran@MacBook-Pro ~/Library/LaunchAgents$ launchctl load $HOME/Library/LaunchAgents/gnupg.gpg-agent-symlink.plist
Load failed: 5: Input/output error
Try running `launchctl bootstrap` as root for richer errors.
```
With sudo:
```
Danran@MacBook-Pro ~/Library/LaunchAgents$ sudo launchctl load $HOME/Library/LaunchAgents/gnupg.gpg-agent.plist
Warning: Expecting a LaunchDaemons path since the command was ran as root. Got LaunchAgents instead.
`launchctl bootstrap` is a recommended alternative.
Load failed: 5: Input/output error
Try running `launchctl bootstrap` as root for richer errors.
Danran@MacBook-Pro ~/Library/LaunchAgents$ sudo launchctl load $HOME/Library/LaunchAgents/gnupg.gpg-agent-symlink.plist

Warning: Expecting a LaunchDaemons path since the command was ran as root. Got LaunchAgents instead.
`launchctl bootstrap` is a recommended alternative.
Load failed: 5: Input/output error
Try running `launchctl bootstrap` as root for richer errors.
```

Any reason why I'm getting these errors? What can I do to fix this?

Thanks.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.