# Local Connect with WP Engine setup/pull fails on Linux

**URL:** <https://community.localwp.com/t/local-connect-with-wp-engine-setup-pull-fails-on-linux/36922>\
**Category:** Archived Support\
**Tags:** linux, local-connect-wpe\
**Created:** [May 11, 2023, 3:38pm UTC](https://community.localwp.com/t/local-connect-with-wp-engine-setup-pull-fails-on-linux/36922 "2023-05-11T15:38:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![angery](https://avatars.discourse-cdn.com/v4/letter/a/f17d59/32.png) [@angery](https://community.localwp.com/u/angery)\
**Post date:** [May 11, 2023, 3:38pm UTC](https://community.localwp.com/t/local-connect-with-wp-engine-setup-pull-fails-on-linux/36922/1 "2023-05-11T15:38:37Z")

</div>

# Bug Summary

After adding a WP Engine host in Local Connect, pull operations fail.

# Steps to reproduce

1. Running on Linux (or I suspect Mac as well), set up Local connect with a WP Engine host.
2. Attempt to pull a site.
3. Observe that no files are synchronised, the database is not synchronised, and there are errors in your local logs.

# Environment Info

Local 6.7.1+6369  
Ubuntu 22.04LTS

# Supporting info

Log of symptoms:

```auto
{"thread":"main","class":"DevKitService","message":"wpe_cli+rsync+pull+REDACTED@REDACTED.ssh.wpengine.net: Permission denied (publickey).\r\n","level":"warn","timestamp":"2023-05-11T15:02:39.203Z"}
{"thread":"main","class":"DevKitService","message":"rsync: connection unexpectedly closed (0 bytes received so far) [Receiver]\nrsync error: unexplained error (code 255) at io.c(231) [Receiver=3.2.7]\n","level":"warn","timestamp":"2023-05-11T15:02:39.205Z"}
{"thread":"main","class":"DevKitService","message":"wpe_cli+db+pull+REDACTED@REDACTED.ssh.wpengine.net: Permission denied (publickey).\r\n","level":"warn","timestamp":"2023-05-11T15:02:40.634Z"}
{"thread":"main","class":"WPEPullService","message":{"error":{"errno":-2,"code":"ENOENT","syscall":"open","path":"/home/REDACTED/Local Sites/REDACTED/app/public/.wpengine-conf/wp-config-site.php"},"eventId":"dcf1f918d6824e6da2bfcf9db9ee72bf"},"level":"error","timestamp":"2023-05-11T15:02:40.667Z"}

```

Log of cause (observed when removing & re-adding a new WPEngine host to Local Connect)

```auto
{"thread":"main","class":"SSHKeyService","errno":-2,"code":"ENOENT","syscall":"open","path":"%%userDataPath%%/ssh/wpe-connect.pub","level":"warn","message":"Error reading SSH public key file: ENOENT: no such file or directory, open '%%userDataPath%%/ssh/wpe-connect.pub'","stack":"Error: ENOENT: no such file or directory, open '%%userDataPath%%/ssh/wpe-connect.pub'","timestamp":"2023-05-11T15:06:42.619Z"}

```

Attempting to open “%%userDataPath%%” on a Linux machine seems highly suspect.

---

<div class="post-metadata">

**Author:** ![angery](https://avatars.discourse-cdn.com/v4/letter/a/f17d59/32.png) [@angery](https://community.localwp.com/u/angery)\
**Post date:** [May 11, 2023, 4:00pm UTC](https://community.localwp.com/t/local-connect-with-wp-engine-setup-pull-fails-on-linux/36922/2 "2023-05-11T16:00:50Z")

</div>

Never mind - the error message about being unable to read the key was a red herring. This turned out to be the problem from [this problem with WPEngine’s ssh pubkey algorithms](http://community.localwp.com/t/unable-to-pull-site-permission-denied-publickey-rsync-connection-unexpectedly-closed-ssh-rsa-signature-algorithm-mismatch/31413)

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [May 11, 2023, 8:14pm UTC](https://community.localwp.com/t/local-connect-with-wp-engine-setup-pull-fails-on-linux/36922/3 "2023-05-11T20:14:22Z")

</div>

Thank you for following up with your resolution @angery!

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [May 11, 2023, 8:14pm UTC](https://community.localwp.com/t/local-connect-with-wp-engine-setup-pull-fails-on-linux/36922/4 "2023-05-11T20:14:43Z")

</div>


