zoukankan      html  css  js  c++  java
  • 获取本地的ssh和更改别人占用的ssh方法

    先打开cmd查看本地的git是否被占用

    (只能用git打开,自带的cmd会报cat命令失效)

    如果没有被占用的情况下,直接输入下面的代码直接生成ssh

    cat ~/.ssh/id_rsa.pub

    如果被占用的情况输入上面的语句会在ssh秘钥最后面出现的是别人的邮箱,这样就需要更改邮箱

    ssh-keygen -t rsa -b 4096 -C "you-email@linkernetworks.com"

    输入上面的语句,最后面那个输入你的邮箱

    怎么知道本地有设置?git config --local --list 看一眼。
    怎么设置本地属性? git config user.name/email。

    修改全局

             如果你要修改当前全局的用户名和邮箱时,需要在上面的两条命令中添加一个参数,--global,代表的是全局。

             命令分别为:git config  --global user.name 你的目标用户名;

                                  git config  --global user.email 你的目标邮箱名;

    这样应该就可以了。

  • 相关阅读:
    子网掩码的作用与IP网段的划分
    DHCP服务器
    Anaconda安装、更新第三方包
    time模块的使用
    TensorFlow安装
    机器学习-线性回归
    机器学习
    Pyhton-类(2)
    python-类(1)
    Python-函数
  • 原文地址:https://www.cnblogs.com/yishifuping/p/15606277.html
Copyright © 2011-2022 走看看