• git


    终端:cd ~/.ssh

    这里写图片描述

    // 生成SSH Key(你的邮箱):

    $ ssh-keygen -t rsa -C lizhimin@gmail.com

    // 回车后(输入密码):

    Generating public/private rsa key pair.
    Enter file in which to save the key (/Users/lizhimin/.ssh/id_rsa): 
    Enter passphrase (empty for no passphrase): 
    Enter same passphrase again: 

    // 结果:

    Your identification has been saved in /Users/lizhimin/.ssh/id_rsa.
    Your public key has been saved in /Users/lizhimin/.ssh/id_rsa.pub.
    The key fingerprint is:
    0a:7a:82:a5:9f:07:9b:be:6c:29:07:30:9d:c6:13:c2 542045215@qq.com
    The key's randomart image is:
    +--[ RSA 2048]----+
    |.                |
    |.E.              |
    | + o             |
    |o *              |
    |.o...   S        |
    |.+.. . .         |
    |o.o=. .          |
    |.o*+.            |
    | =*o             |
    +-----------------+

    // 然后在这个目录就可以找到你生成的SSH Key:

    /Users/lizhimin/.ssh/id_rsa.pub.  //  pbcopy < ~/.ssh/id_rsa.pub  复制秘钥

    // 然后将内容添加到你的GitHub中:

  • 相关阅读:
    第四次作业
    第二次上机作业
    5.21上机作业
    第十一周课后作业
    第十一周上机练习
    第10周java作业
    第9次上级联系
    第8周作业
    第八周上机练习
    第七周作业
  • 原文地址:https://www.cnblogs.com/xmhu/p/6723102.html
Copyright © 2020-2023  润新知