/home/myuser/.git/project.git
에 내 서버에 새 GIT 저장소를 만들었습니다. 자식에 대한 ssh 키를 C:\Users\Toshiba\.ssh\github_rsa.pub
&에 서버의 authorized_keys
파일과 함께 추가했습니다.권한 문제로 인해 Windows에서 ssh를 사용하는 git clone이 실패했습니다.
내가 ssh를 사용하여 git clone을 시도하면 아래와 같이 실패합니다.
$의 자식 클론 SSH : //[email protected] : 2888/집/참고 MyUser/.git/project.git
Cloning into 'project'...
Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
당신은이 문제를 해결 좀 도와 주 시겠어요. 공개/개인 키가 표준 이름 C:\Users\Toshiba\.ssh\id_rsa(.pub)
하지만 C:\Users\Toshiba\.ssh\github_rsa.pub
이없는 경우
덕분에 또 다른 예를
C:\Users\Toshiba
에 정의되어 있는지 확인합니다. 다시 시도하고 다시 보자. – logan