데이터 사이언스 공부
GitHub SSH "Permission Denied" Error
박재성
2024. 6. 22. 03:57
When cloning github repository, “Permission Denied” error occurred. You need SSH key generated and the public key under id_rsa.pub should be added to your github account.
- Generate SSH key
ssh-keygen
This will generate two files in the ~/.ssh directory within your home.
- ~/.ssh/id_rsa
- ~/.ssh/id_rsa.pub
2. Add public key in Github account
- Copy the content of the newly-generated id_rsa.pub file.
- Go to github.com/settings/keys
- Create new SSH key
- Paste the public key content (copied from step a)