zoukankan      html  css  js  c++  java
  • Git SSH Key

       一、设置Git的user name和email:

    $ git config --global user.name "hhl_vip"
    $ git config --global user.email "hhl_vip@sina.cn"

      二、生成SSH密钥过程:
      1.查看是否已经有了ssh密钥:cd ~/.ssh
      如果没有密钥则不会有此文件夹,有则备份删除
      2.生成密钥:

    $ ssh-keygen -t rsa -C “hhl_vip@sina.cn”
    按3个回车,密码为空。
    
    Your identification has been saved in /home/tekkub/.ssh/id_rsa.
    Your public key has been saved in /home/tekkub/.ssh/id_rsa.pub.
    The key fingerprint is:
    ………………

      在用户目录下(一般在C盘)找到.ssh文件夹,拷贝id_rsa.pub文件内容添加到github.com设置SSH Keys的地方即可。

     

  • 相关阅读:
    hdu 1.2.4
    交换机&&路由器
    AP、AC、无线路由器
    肩胛骨
    无线路由器
    背部肌肉
    胸部肌肉
    redis未授权访问
    进制
    攻防实验
  • 原文地址:https://www.cnblogs.com/tomcatx/p/4256836.html
Copyright © 2011-2022 走看看