[GIt] git@github.com: Permission denied (publickey) - SSH를 사용한 Repository 연결
문제 발생git push origin main 명령어를 실행했을 때 git@github.com: Permission denied (publickey). fatal: Could not read from remote repository.라는 오류가 발생했다면, 이는 SSH 인증 문제로 인해 GitHub 원격 저장소에 접근할 수 없다는 뜻입니다.가능한 원인과 해결 방법SSH 키가 설정되지 않았거나 SSH 에이전트에 추가되지 않음해결 방법 :SSH 키가 있는지 확인 ls -al ~/.sshid_rsa나 id_ed25519 같은 파일(및 .pub 파일)이 있는지 확인합니다.키가 없다면 새로 생성ssh-keygen -t ed25519 -C "your_email@example.com"기본 위치를 수락하려면 Enter..