Git@github.com: Permission denied (publickey)

When i try to run “bench get-app {url}” I got this error. How to solve this problem?

`git@github.com: Permission denied (publickey).

fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
ERROR:
Traceback (most recent call last):
File “/home/ccl/.local/bin/bench”, line 8, in
sys.exit(cli())
File “/home/ccl/.local/lib/python3.8/site-packages/bench/cli.py”, line 121, in cli
raise e
File “/home/ccl/.local/lib/python3.8/site-packages/bench/cli.py”, line 111, in cli
bench_command()
File “/usr/lib/python3/dist-packages/click/core.py”, line 764, in call
return self.main(*args, **kwargs)
File “/usr/lib/python3/dist-packages/click/core.py”, line 717, in main
rv = self.invoke(ctx)
File “/usr/lib/python3/dist-packages/click/core.py”, line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/lib/python3/dist-packages/click/core.py”, line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/lib/python3/dist-packages/click/core.py”, line 555, in invoke
return callback(*args, **kwargs)
File “/home/ccl/.local/lib/python3.8/site-packages/bench/commands/make.py”, line 142, in get_app
get_app(
File “/home/ccl/.local/lib/python3.8/site-packages/bench/app.py”, line 354, in get_app
app.get()
File “/home/ccl/.local/lib/python3.8/site-packages/bench/utils/render.py”, line 110, in wrapper_fn
return fn(*args, **kwargs)
File “/home/ccl/.local/lib/python3.8/site-packages/bench/app.py”, line 159, in get
self.bench.run(
File “/home/ccl/.local/lib/python3.8/site-packages/bench/bench.py”, line 43, in run
return exec_cmd(cmd, cwd=cwd or self.cwd)
File “/home/ccl/.local/lib/python3.8/site-packages/bench/utils/init.py”, line 126, in exec_cmd
raise CommandFailedError
bench.exceptions.CommandFailedError
`

It seems you’ve entered SSH URL but SSH key you have doesn’t have read access to the app you’re trying to clone.

You can confirm by attempting git clone url

3 Likes

when i try to run bench update then its gives me same error