小编jqh*_*art的帖子

Gitlab密钥格式问题

我正面临一个奇怪的情况,我使用gitlab帐户来处理我的代码.我正在使用ssh协议来访问repo.我能够拉取代码但我在尝试推送代码时收到以下错误.这对我来说可能是愚蠢的.但我将密钥存储在我的gitlab配置文件中,能够使用它来提取代码.

错误:

$ git push origin master
key_load_public: invalid format
Enter passphrase for key '/c/Users/username/.ssh/id_rsa':
Access denied.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
Run Code Online (Sandbox Code Playgroud)

git ssh gitlab atlassian-sourcetree

14
推荐指数
2
解决办法
1万
查看次数

标签 统计

atlassian-sourcetree ×1

git ×1

gitlab ×1

ssh ×1