Warning: Permanently added the RSA host key for IP address '192.30.253.113' to the list of known hosts. Permission denied (publickey). fatal: Could not read from remote repository. Please make sure y

时间:2023-03-08 22:30:48

这个应该是很多github新手经常出错的问题,这个就是没有在你github上添加一个公钥。

下面就直接说步骤:

1 可以用 ssh -T git@github.com去测试一下

Warning: Permanently added the RSA host key for IP address '192.30.253.113' to the list of known hosts. Permission denied (publickey). fatal: Could not read from remote repository.  Please make sure y

图上可以明显看出缺少了公钥

2 直接上图

Warning: Permanently added the RSA host key for IP address '192.30.253.113' to the list of known hosts. Permission denied (publickey). fatal: Could not read from remote repository.  Please make sure y

3. cat 一下  把出现的key 复制下来

Warning: Permanently added the RSA host key for IP address '192.30.253.113' to the list of known hosts. Permission denied (publickey). fatal: Could not read from remote repository.  Please make sure y

4 .在github上添加刚刚生成的公钥

Warning: Permanently added the RSA host key for IP address '192.30.253.113' to the list of known hosts. Permission denied (publickey). fatal: Could not read from remote repository.  Please make sure y

Warning: Permanently added the RSA host key for IP address '192.30.253.113' to the list of known hosts. Permission denied (publickey). fatal: Could not read from remote repository.  Please make sure y

Warning: Permanently added the RSA host key for IP address '192.30.253.113' to the list of known hosts. Permission denied (publickey). fatal: Could not read from remote repository.  Please make sure y

Warning: Permanently added the RSA host key for IP address '192.30.253.113' to the list of known hosts. Permission denied (publickey). fatal: Could not read from remote repository.  Please make sure y

一切都好了  就ok 了 ,反正我的就好了,如果你的还没好那肯定是姿势不对,换个姿势再来一次吧