# 회사 계정 SSH 설정
Host github.com
HostName github.com
User git
IdentityFile ~/.ssh/swd_회사명
# 개인 계정 SSH 설정
Host github.com-swd
HostName github.com
User 내 깃헙 아이디 적음
IdentityFile ~/.ssh/id_rsa_swd
ssh -T git@github.com
ssh -T git@github.com-swd
git config user.name 계정아이디
git config user.email 계정이메일
# 전역으로 설정하고자 할 때 --global로 설정
git config --global user.name
git config --global user.email
# 설정 잘 됐는지 확인하려면 아래 명령어로 확인
git config user.name
git config user.email
╭─ ~/Desktop/personal/my-project ──────---───────────---──────── ✔ │ base
╰─ git clone git@github.com:pm1100tm/myblog-backend.git
Cloning into 'myblog-backend'...
ERROR: Repository not found.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
ssh -T git@github.com
╰─ ssh -T git@github.com
Hi swd0705Tosky! You've successfully authenticated, but GitHub does not provide
shell access.