生成私钥、公钥,配置到Git上

ssh-keygen -t rsa -C "[email protected]"

输入完毕指令,输入密码。然后会在 /z/.ssh/文件夹下生成一个私钥rsa_id、公钥rsa_pub。

使用下列命令把生成的公钥复制到git网站SSL设置里面。

cat ~/.ssh/id_rsa.pub | pbcopy

猜你喜欢

转载自www.cnblogs.com/Oldz/p/12218906.html