cd midnight-node-docker
Cloning into ‘midnight-node-docker’… 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.
-bash: cd: midnight-node-docker: No such file or directory
hey @R_Kash this error occurs when Git attempts to clone a repository using SSH, but your machine does not have a valid public key configured or does not have permission to access that repository.
Follow these steps to fix it:
i) Check if you already have an SSH key:
In your terminal run:
ls ~/.ssh
If you have it you will see a .pub file similar to this:
id_rsa.pub
If you don’t see a file or get an error, generate a new key: