#### Git 개인키(Private Key) 클라이언트에 등록 - Permission denied (publickey)
```
1. Add Public key ( Server )
2. Add Private key (Client)
```
### : C:/Users/[사용자]/.ssh/config
```
Host github.com
HostName github.com
IdentityFile ~/.ssh/개인키파일
User Github사용자 아이디
```
```
#
# GitHub
#
Host github.com
HostName github.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/gh_id_rsa
#
# bitbucket
#
Host bitbucket.org
HostName bitbucket.org
PreferredAuthentications publickey
IdentityFile ~/.ssh/bt_id_rsa
#
# gitlab
#
Host gitlab.com
HostName gitlab.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/gl_id_rsa
```
'git' 카테고리의 다른 글
[git] warning: LF will be replaced by CRLF in bin/cmder_mini/LICENSE (0) | 2021.06.17 |
---|---|
Git Clone - Error SSL certificate (0) | 2019.08.28 |
git flow (0) | 2019.07.30 |
Upload files to jsdelivr CDN ( github ) (0) | 2019.07.09 |
git flow (0) | 2019.01.30 |
댓글