创建SSH密钥对

Avatar photo

创建密钥对:

<comment>改成自己需要的字符串

$ ssh-keygen -t ed25519 -C "<comment>"

接着全按回车使用默认生成

密钥对会生成在/home/user/.ssh/id_ed25519目录下。

参考:

使用 SSH 密钥与 GitLab 通信 |极狐GitLab