# Sync script & SSH access with Lima

**URL:** https://discourse.roots.io/t/sync-script-ssh-access-with-lima/26927
**Category:** bedrock
**Tags:** lima
**Created:** 2024-04-02T21:31:28Z
**Posts:** 19
**Showing post:** 18 of 19

## Post 18 by @ben — 2025-01-23T05:33:26Z

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 :sweat_smile:)?

```
ssh-add --apple-use-keychain ~/.ssh/id_ed25519
```

[Reference](https://docs.github.com/en/enterprise-cloud@latest/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent#adding-your-ssh-key-to-the-ssh-agent)

---

_[View the full topic](https://discourse.roots.io/t/sync-script-ssh-access-with-lima/26927)._
