Git clone is failing over ssh on build

The connection is sucessful in connector using same private key. Please guide.

Initialized empty Git repository in /harness/.git/

  • git fetch ‘–depth=50’ origin +refs/heads/main:
    load pubkey “/home/drone/.ssh/id_rsa”: invalid format
    Host key verification failed.
    fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.