# Error when cloning: zsh:1: command not found: pijul

**URL:** <https://discourse.pijul.org/t/error-when-cloning-zsh-command-not-found-pijul/926>\
**Category:** Question\
**Created:** [June 1, 2022, 6:50pm UTC](https://discourse.pijul.org/t/error-when-cloning-zsh-command-not-found-pijul/926 "2022-06-01T18:50:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jummit](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.pijul.org/jummit/32/464_2.png) [@Jummit](https://discourse.pijul.org/u/Jummit)\
**Post date:** [June 1, 2022, 6:50pm UTC](https://discourse.pijul.org/t/error-when-cloning-zsh-command-not-found-pijul/926/1 "2022-06-01T18:50:03Z")

</div>

This is a weird issue; when I try to clone a repository using ssh like this:

```auto
pijul clone ssh://use@192.157.575.17/repo/path

```

I get the following output:

```auto
Password for key "id_ed25519": 
Password for user@192.157.575.17: 
zsh:1: command not found: pijul
Error: channel closed

```

The pijul executable is on the PATH on both machines. Am I doing something wrong? Or is this sort of cloning not supported right now?

---

<div class="post-metadata">

**Author:** ![pmeunier](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.pijul.org/pmeunier/32/4_2.png) [@pmeunier](https://discourse.pijul.org/u/pmeunier)\
**Post date:** [June 1, 2022, 7:45pm UTC](https://discourse.pijul.org/t/error-when-cloning-zsh-command-not-found-pijul/926/2 "2022-06-01T19:45:43Z")

</div>

Hi! Welcome here. This is totally supported, but for some reason, depending on how the remote pijul was installed, it isn’t always found on the path.

You can use the environment variable `REMOTE_PIJUL` to set the path to the remote executable, for example `REMOTE_PIJUL=/home/me/.cargo/bin/pijul pijul push me@remote/path`

---

<div class="post-metadata">

**Author:** ![Jummit](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.pijul.org/jummit/32/464_2.png) [@Jummit](https://discourse.pijul.org/u/Jummit)\
**Post date:** [June 1, 2022, 7:54pm UTC](https://discourse.pijul.org/t/error-when-cloning-zsh-command-not-found-pijul/926/3 "2022-06-01T19:54:10Z")

</div>

> [@pmeunier](#):
>
> `REMOTE_PIJUL=/home/me/.cargo/bin/pijul`

Nice, that worked. I wonder why it didn’t find the executable. Maybe because I messed with the location of my .zshrc file, in which I add the binaries to the path…?
