Is it possible to clone private github repo using ssh-rsa deploy key

Viewed 32

I'm using dbt Cloud managed repo for my dbt project and I want to know if it's possible to clone it using the deploy key. here is the format of the deploy key: ssh-rsa AAAAB3NzaC1yc2E...

here is a command I tried:

git clone git@github.com:dbt-cloud-managed-repositories/private_repo.git \
  --config  core.sshCommand="ssh -i C:\\Users\\User\\.ssh\\deploy_key"

it returns the following error:

Cloning into 'private_repo'...
Load key "C:\\Users\\User\\.ssh\\deploy_key": invalid format
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.

PS: I don't have access to this private repo. I only have the deploy key.

0 Answers
Related