0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

GitLabのssh-key登録一連

Posted at

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 をクリック

2025-04-23_17h49_39.png

2.3 先ほどコピーしたものを張り付ける。
2025-04-23_15h19_07.png

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?