VM 이 있는데 Ubuntu 18.0.4
gitlab에서 만든 코드를 git에 푸시하고 싶었습니다.
내가 이미 한 일
- 자식 설치
- SSH 키를 생성했습니다
- 내 SSH 키를 gitlab에 추가했습니다
- gitlab에 저장소 생성
- 자식 초기화
- git 원격 추가 원본 the_git_link
- sudo 자식 추가 .
- sudo git commit -m "msg"
내가 붙인 것
- sudo git push 오리진 마스터
Ubuntu 터미널의 오류 메시지
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.