# Air-Gapped Cli-Binary directory

**URL:** <https://forum.cardano.org/t/air-gapped-cli-binary-directory/55603>\
**Category:** Setup a Stake Pool\
**Created:** [30 March 2021 16:56 UTC](https://forum.cardano.org/t/air-gapped-cli-binary-directory/55603 "2021-03-30T16:56:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Robert\_Sherman](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/robert_sherman/32/33343_2.png) [@Robert\_Sherman](https://forum.cardano.org/u/Robert_Sherman)\
**Post date:** [30 March 2021 16:56 UTC](https://forum.cardano.org/t/air-gapped-cli-binary-directory/55603/1 "2021-03-30T16:56:29Z")

</div>

I have copied the CLI-binaries from my block chain node to a usb flash drive, but I don’t know what directory they need to be placed in on the air gapped machine in order to create the cold keys

---

<div class="post-metadata">

**Author:** ![laplasz](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/laplasz/32/15238_2.png) [@laplasz](https://forum.cardano.org/u/laplasz)\
**Post date:** [30 March 2021 17:16 UTC](https://forum.cardano.org/t/air-gapped-cli-binary-directory/55603/2 "2021-03-30T17:16:13Z")

</div>

Hi!

The folder name can be anything. The only thing you need to care about is that both machines should have the same operating system on it. So create a folder - copy the CLI tools, then start using them.

---

<div class="post-metadata">

**Author:** ![Robert\_Sherman](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/robert_sherman/32/33343_2.png) [@Robert\_Sherman](https://forum.cardano.org/u/Robert_Sherman)\
**Post date:** [30 March 2021 17:23 UTC](https://forum.cardano.org/t/air-gapped-cli-binary-directory/55603/3 "2021-03-30T17:23:37Z")

</div>

I copied the “cardano-cli” and “cardano-node” files from the `/usr/local/bin` on my block producer node copied them to a folder on my air-gapped machine and attempted to run  
“cardano-cli node key-gen   
–cold-verification-key-file node.vkey   
–cold-signing-key-file node.skey   
–operational-certificate-issue-counter node.counter”

but I was greeted with a “cardano-cli: command not found”. The block producer is ubuntu server and the air-gap is ubuntu desktop.

---

<div class="post-metadata">

**Author:** ![laplasz](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/laplasz/32/15238_2.png) [@laplasz](https://forum.cardano.org/u/laplasz)\
**Post date:** [30 March 2021 17:31 UTC](https://forum.cardano.org/t/air-gapped-cli-binary-directory/55603/4 "2021-03-30T17:31:19Z")

</div>

yeah - if you want to be confortable add the newly created folder to the PATH environment variable:

```auto
export PATH=/home/user/cardano_folder:$PATH

```

or just execute them by defining the path to them, like:

```auto
/home/user/cardano_folder/cardano-cli node ...

```

or if you are in the folder of the tools this also works:

```auto
./cardano-cli node ...

```

and make sure that these tools has execution rights

---

<div class="post-metadata">

**Author:** ![Robert\_Sherman](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/robert_sherman/32/33343_2.png) [@Robert\_Sherman](https://forum.cardano.org/u/Robert_Sherman)\
**Post date:** [30 March 2021 17:52 UTC](https://forum.cardano.org/t/air-gapped-cli-binary-directory/55603/6 "2021-03-30T17:52:18Z")

</div>

It turns out the files themselves had issues with them that were created during the copying to the usb. I instead sent the files via ssh, and that did the trick.
