[Github] 配置ssh免密码登录解决 You've successfully authenticated, but GitHub does not provide shell access.

当配置免密码登录的时候

ssh -T git@github.com

验证这一步提示出了这样一句话,并且git push命令也推送不上去

 

这句话到不是说配置错误了,只是一句提示语

如果要解决git push 不成功,可以这样做

 

git remote set-url origin git@github.com:用户名/仓库名.git

 

这样就可以了

 

posted @ 2022-01-05 23:39  唯一客服系统开发笔记  阅读(2411)  评论(0编辑  收藏  举报