zoukankan      html  css  js  c++  java
  • GIT生成 SSH Key步骤

    //设置user.name和email 提交到git之后会显示用户名(在随意一个目录打开git-bash执行就行)
    Administrator@DESKTOP-BP3H0HS MINGW64 /d/midou (master) $ git config --global user.name "liuchao" Administrator@DESKTOP-BP3H0HS MINGW64 /d/midou (master) $ git config --global user.email "liuchao102@163.com"
    //生成秘钥 Administrator@DESKTOP
    -BP3H0HS MINGW64 /d/midou (master) $ ssh-keygen -t rsa -C "liuchao102@163.com"
    Generating public/private rsa key pair. Enter file in which to save the key (/c/Users/Administrator/.ssh/id_rsa): /c/Users/Administrator/.ssh/id_rsa already exists. Overwrite (y/n)? y Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /c/Users/Administrator/.ssh/id_rsa. Your public key has been saved in /c/Users/Administrator/.ssh/id_rsa.pub. The key fingerprint is: SHA256:N20m0PnwfNSZZaCOvp8gW8Fac49kIQo1fUMz+490AO8 “liuchao102@163.com The key's randomart image is: +---[RSA 2048]----+ | o. .= ..o| | . o..oB o+| | . . =.+.+o.| | . + X = . | | S X % E .| | = @ = + | | o + . o .| | + o . | | . ..o | +----[SHA256]-----+ Administrator@DESKTOP-BP3H0HS MINGW64 /d/midou (master) $

    生成完秘钥之后会在 C:UsersAdministrator.ssh 目录下 id_rsa和id_rsa.pub 两个文件

    拷贝id_rsa.pub文件内容到 git 服务器上就可以了

  • 相关阅读:
    SQL 查询第n条到第m条的数据
    Linq 中查询一个表中指定的字段
    归并排序与逆序对
    补码拾遗
    堆排序
    It is time to cut the Gordian Knot!
    蛋疼
    [引]Microsoft Visual Studio .NET 2005 预发行版
    关于VS2005中自动生成TableAdapter的事务处理
    关于释放ASPNET进程的内存占用问题.
  • 原文地址:https://www.cnblogs.com/liuchao102/p/5805582.html
Copyright © 2011-2022 走看看