GitLab-ssh-keyの登録作業
クローンするに当たって、ssh-keyの設定が必要になったりしたので以下にまとめ。
2.ssh-keyの作成→取得
ssh-keygen -t ed25519 -C "your_email@example.com"
出力1→そのままenter
Enter file in which to save the key (/home/yourname/.ssh/id_ed25519):
出力2→そのままenter
Enter passphrase (empty for no passphrase):
作成完了。その後、出力1に記載されていたパスにアクセス。
cd /home/yourname/.ssh/
catコマンドで、ssh-keyを表示→出てきた値をcopy
cat ~/.ssh/id_ed25519.pub
2.ssh-keyをgitlabに登録
2.1 Edit profileを開く
2.2 SSH keysを選択→Add new key をクリック