내 Win10 컴퓨터 및 Github 계정과 SSH 키를 페어링했으며 Bash에서 작동 중이었지만 오늘은 WSL을 통해 ZSH (oh-my-zsh)를 설치했으며 이제 푸시하려고 할 때 다음 오류가 표시됩니다.
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
에서 zsh을 :
ssh -T -ai ~/.ssh/id_rsa [email protected]
[email protected]: Permission denied (publickey).
에서 배쉬 :
$ ssh -T -ai ~/.ssh/id_rsa [email protected]
Hi UserName! You've successfully authenticated, but GitHub does not provide shell access.
단계를 따르기 위해 Ubuntu (WSL2)에 ZSH를 설치했습니다. 제 경우에는 ZSH 셸을 통해 리모컨으로 푸시 할 수 있습니다. 문제는 WSL 내부 의 SSH 키에있는 것 같습니다 . 단계에 따라 WSL 내 에서 페어링 할 다른 키를 생성 합니다.
이는 Windows의 첫 번째 SSH 키가 한 위치에 있고 이제 필요한 SSH 키를 WSL 내에 배치해야하기 때문입니다.
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다