gitlab 创建了项目,本地公钥也ssh-key也放到gitlab上面了,为什么这里初始化以后,git clone 提示密码。

git clone git@192.168.1.235:operation/ihaozhuo.git
Cloning into 'ihaozhuo'...
git@192.168.1.235's password:
Permission denied, please try again.
git@192.168.1.235's password:
Permission denied, please try again.
git@192.168.1.235's password:
Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights

阅读 8.3k
1 个回答

你创建秘钥的时候,可能输入了密码。
你创建秘钥的时候,密码设置为空,即可!

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进