生成公钥
ssh-keygen -t rsa -C"xxxxx@xxxxx.com"
Overwrite (y/n)? 输入 y,回车
Enter passphrase (empty for no passphrase): 回车
Enter same passphrase again: 回车
查看公钥
cat ~/.ssh/id_rsa.pub
添加公钥
将公钥拷贝到 GitLab的Profile Settings中的SSH keys 中
ssh-keygen -t rsa -C"xxxxx@xxxxx.com"
Overwrite (y/n)? 输入 y,回车
Enter passphrase (empty for no passphrase): 回车
Enter same passphrase again: 回车
cat ~/.ssh/id_rsa.pub
将公钥拷贝到 GitLab的Profile Settings中的SSH keys 中
本文标题:GitLab添加公钥
本文链接:https://www.haomeiwen.com/subject/zsgsdftx.html
网友评论