美文网首页
Git SSH Key 生成步骤

Git SSH Key 生成步骤

作者: Kosh | 来源:发表于2015-12-03 11:20 被阅读64次

生成SSH密钥

#设置Git的user name和email:
git config --global user.name "username"
git config --global user.email "username@gmail.com"
#按3个回车,密码为空。
ssh-keygen -t rsa -C "username@gmail.com"

添加密钥到git服务器

在C:\Users\Administrator.ssh\id_rsa.pub内容添加到git服务器的SSH KEYS。

git clone ssh

git clone ssh://git@116.228.89.156:8022/xxxx/xxx.git

相关文章

网友评论

      本文标题:Git SSH Key 生成步骤

      本文链接:https://www.haomeiwen.com/subject/bzhshttx.html