LoginSignup
27
11

GitHubアクセス時に「remote: Support for password authentication was removed on August 13, 2021.」のエラーが出てログインできない

Last updated at Posted at 2023-08-28

背景

ようやく重い腰を上げてGitHubアカウントを作り、vscodeから初git pushをしたところ下記のエラーが発生して15分ほど詰まってしまいました

remote: Support for password authentication was removed on August 13, 2021.

結論

2021年8月13日以降、GitHubリポジトリにアクセスするには、ユーザ名とパスワードではなくアクセストークンが必要になった。

手順

  1. GitHubにログイン
  2. 右上の自分のアイコンをクリック
  3. 「Settings」をクリック
  4. 左メニュー下部の「Developer settings」をクリック
  5. 左メニューの「Personal access tokens」をクリック
  6. 右上の「Generate new token」をクリックしてアクセストークンを作成➡Select scopes:repoと、admin:repo_hookとdelete:repoは必須でチェックを入れる
  7. vscodeのターミナルでIDとパスワードの代わりにアクセストークンを入力してログイン

以上です。

27
11
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
27
11