Git 一直要求输入不存在的密码
Git keeps asking for non-existing password
我无法让 Git 命令正常工作。
我重新安装了所有 Git 相关的东西,看看它是否能更好地工作,但现在我什至不能克隆一个项目。 Git一直要求输入密码,一直没有密码
c:\Users\bls\Git>git clone -v gitlab@svn.faktab.net:pospayclient/api.git
16:14:29.129279 git.c:348 trace: built-in: git 'clone' '-v' 'gitlab@svn.faktab.net:pospayclient/api.git'
Cloning into 'api'...
16:14:29.199280 run-command.c:335 trace: run_command: 'ssh' 'gitlab@svn.faktab.net' 'git-upload-pack '\''pospayclient/api.git'\'''
gitlab@svn.faktab.net's password:
Permission denied, please try again.
gitlab@svn.faktab.net's password:
Permission denied, please try again.
gitlab@svn.faktab.net's password:
Permission denied (publickey,password,keyboard-interactive).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
我从经验中知道,当 Git 要求输入不存在的密码时,问题可能是
- A) 不匹配的 SSH 密钥 - 此密钥之前有效
- B) 错误的项目地址 - 我确定地址是正确的
- C) SSH 密钥尚未添加到 SSH 代理 - 我的同事从不使用 SSH 代理,至少没有手动使用。
其他可能的原因?
通过制作新密钥不知何故解决了问题
我无法让 Git 命令正常工作。 我重新安装了所有 Git 相关的东西,看看它是否能更好地工作,但现在我什至不能克隆一个项目。 Git一直要求输入密码,一直没有密码
c:\Users\bls\Git>git clone -v gitlab@svn.faktab.net:pospayclient/api.git
16:14:29.129279 git.c:348 trace: built-in: git 'clone' '-v' 'gitlab@svn.faktab.net:pospayclient/api.git'
Cloning into 'api'...
16:14:29.199280 run-command.c:335 trace: run_command: 'ssh' 'gitlab@svn.faktab.net' 'git-upload-pack '\''pospayclient/api.git'\'''
gitlab@svn.faktab.net's password:
Permission denied, please try again.
gitlab@svn.faktab.net's password:
Permission denied, please try again.
gitlab@svn.faktab.net's password:
Permission denied (publickey,password,keyboard-interactive).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
我从经验中知道,当 Git 要求输入不存在的密码时,问题可能是
- A) 不匹配的 SSH 密钥 - 此密钥之前有效
- B) 错误的项目地址 - 我确定地址是正确的
- C) SSH 密钥尚未添加到 SSH 代理 - 我的同事从不使用 SSH 代理,至少没有手动使用。
其他可能的原因?
通过制作新密钥不知何故解决了问题