Cannot run cardano-cli on airgapped machine

I copied cardano-cli on air gapped machine.
When I try to run cardano-cli, it gives “command not found”.
I tried
-bash: ./cardano-cli:
and I get:
Permission denied

I looked on the source (main node) machine, with “which cardano-cli”, and I got the path I copied from.
How can I fix this issue ?

I figued it out. Upon copy, execution rights are lost.
to see them, use:
ls -la
then change them to give yourself read/write/execute rights:
chmod +rwx cardano-cli
then you can run with:
./cardano-cli

1 Like