git プッシュ権限が拒否されました

git プッシュ権限が拒否されました

私はUbuntu 18.0.4VM を持っており、gitlab で作成したコードを git にプッシュしたいと考えていました。

すでにやったこと

  1. gitをインストールする
  2. sshキーを作成しました
  3. SSHキーをgitlabに追加しました
  4. Gitlabでリポジトリを作成する
  5. git 初期化
  6. git リモート追加 origin the_git_link
  7. git を追加します。
  8. sudo git commit -m "メッセージ"

私が行き詰まったもの

  1. sudo git プッシュ origin マスター

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.

関連情報