GitHub

チーム開発

コミットメッセージ

プロジェクト管理

Pull Request

個人

セキュリティ

Visual Studio Code

GitHub Codespaces

GitHub CLI

GitHub Gist

基本操作

clone

バックアップ

監査ログ

アピール

トラブルシューティング

The requested URL returned error: 403 Forbidden while accessing https://...

ERROR: You're using an RSA key with SHA-1, which is no longer allowed. Please use a newer client or a different key type.

ERROR: You're using an RSA key with SHA-1, which is no longer allowed. Please use a newer client or a different key type.
Please see https://github.blog/2021-09-01-improving-git-protocol-security-github/ for more information.
  • Ed25519で鍵を作る
    $ ssh-keygen -t ed25519
  • OpenSSHのバージョンが古くてEd25519が使えない場合は、ECDSA で鍵を作る
    $ ssh-keygen -t ecdsa

Permission denied (publickey).

  • 秘密鍵を登録
    $ eval `ssh-agent`
    $ ssh-add ~/.ssh/id_ecdsa
    $ ssh-add -l
  • .ssh/config を作成(ファイル名を id_rsa から変更した場合は必要)
    Host github github.com
      HostName github.com
      User git
      IdentityFile ~/.ssh/id_ecdsa
      IdentitiesOnly yes
  • 接続確認
    $ ssh -T github
    Hi [アカウント名]! You've successfully authenticated, but GitHub does not provide shell access.

トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2023-05-15 (月) 10:13:58 (340d)