I am using my jenkins as a localhost i added my public key in the github and tried cloning in the machine with git clone git@github.com:xyz/xyz.git
it's perfectly cloning the repo commit the repo and pull push are working completely in local machine.
I wanted to use jenkins to build my jobs through jenkins with ssh i added my private key to the manage credentials in username with ssh key like this
and tried to add a new pipeline job
but i am getting the error
Failed to connect to repository : Command "git ls-remote -h -- git@github.com:neetesshhr/sheildxwebpage.git HEAD" returned status code 128:
stdout:
stderr: No ED25519 host key is known for github.com and you have requested strict checking.
Host key verification failed.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
i tried to follow this link
But not working at all how to fix this issue?