Authentication error with Git Clone module

My first time using the git clone module. I normally use $git clone from the terminal without issues. I have the code ssh key added to my github account.

I am testing with the Git Clone modules to auto clone a repo on a ec2 template as an AI task. The cloning fails with the error below (extracted from initialization logs). However, if I clone from the instance's terminal, it works fine.
The Git Clone modules uses ssh auth similar to the regular clone command. Does authentication to github works different on the module?
Creating directory /home/coder/my-root-space...
Cloning git@github.com:repo.git to /home/coder/repo...
Cloning into '/home/coder/repo'...
Host key verification failed.

Coder authenticates with  git  using the public key below. All clones with SSH
are authenticated automatically 🪄.
ssh-ed25519 MYKEY HERE
Add to GitHub and GitLab:
  https://github.com/settings/ssh/new
  https://gitlab.com/-/profile/keys
Encountered an error running "coder gitssh", see "coder gitssh --help" for more information
error: exit status 255
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Was this page helpful?