git push origin deploy
실행 시 인증 실패git push
필요ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
~/.ssh/id_rsa
, id_rsa.pub
cat ~/.ssh/id_rsa.pub
GitHub 접속 → Settings
SSH and GPG keys 클릭
New SSH key 버튼
EC2 Server
id_rsa.pub
내용 붙여넣기등록 완료
git remote set-url origin git@github.com:cheongyakplanet/BE.git
ssh -T git@github.com
정상 시 출력:
Hi singingsandhill! You've successfully authenticated, but GitHub does not provide shell access.
git push origin deploy
git push
문제 해결