I ran into this issue on a fresh macOS Sequoia install, and some of the workarounds mentioned in this topic did work. But, there is a way to get macOS and Lima to play together without that extra hassle.
I can confirm that just doing ssh example.test
works on two of my macOS machines. My generated wp-cli.trellis-alias.yml
file looks like:
"@development":
ssh: "example.test"
path: "/srv/www/example.com/current/web/wp"
Unfortunately, I don’t recall at which point/change I made that got things working for me. Maybe it was adding my SSH private key to macOS’s native keychain (which always bites me on a fresh install )?
ssh-add --apple-use-keychain ~/.ssh/id_ed25519