git 푸시 권한이 거부되었습니다.

git 푸시 권한이 거부되었습니다.

VM 이 있는데 Ubuntu 18.0.4gitlab에서 만든 코드를 git에 푸시하고 싶었습니다.

내가 이미 한 일

  1. 자식 설치
  2. SSH 키를 생성했습니다
  3. 내 SSH 키를 gitlab에 추가했습니다
  4. gitlab에 저장소 생성
  5. 자식 초기화
  6. git 원격 추가 원본 the_git_link
  7. sudo 자식 추가 .
  8. sudo git commit -m "msg"

내가 붙인 것

  1. 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.

관련 정보