新安装的Windows 11系统,使用 ssh-keygen
创建密钥后将 id_rsa.pub
中的公钥上传至git服务器,然后在 windows terminal
的powershell
中使用 git clone git@server:user/repo
,提示 Permission denied,已经确认过上传的公钥是正确的,并且从git bash、cygwin terminal和windows terminal中均可访问~/.ssh/id_rsa
文件。
尝试过删除原有密钥对,重新生成,但是并没有帮助
尝试过更换git服务器尝试,包括coding、gitee和github,均得到相同的反馈。
已确认远程git仓库存在,并能从网页端访问。
已确认可以使用https搭配账号和密码方式进行克隆。