LoginSignup
1
1

公開鍵を作成して GitLab に登録する

Last updated at Posted at 2021-11-23

本記事を作成した動機

自分は Git Bash ではなく WindowsTerminal + PowerShell をよく使っている。
が、公式サイトには PowerShell での手順が載っていなかったので、備忘録としてメモ

PowerShell での手順

  1. SSH キーを生成

    # メールアドレスは自分のものに置き換える
    ssh-keygen -t ed25519 -C "your_email@example.com"
    
  2. 作成した公開鍵をクリップボードにコピー

    Get-Content "${HOME}\.ssh\id_ed25519.pub" | Set-Clipboard
    
  3. 公開鍵を GitLab に登録

    1. GitLab の設定画面 の「User Settings」->「SSH Keys」 ->「Key」にペーストする

    2. 「Add key」を押下する

参考サイト

1
1
0

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