zoukankan      html  css  js  c++  java
  • Github授权新的设备ssh接入

    为Mac生成公钥

    步骤:

    • 检查本机是否已有公钥
      ls -la ~/.ssh
    • 将原来的公钥删除
      rm -rf ~/.ssh
    • 生成新的公钥(填自己的邮箱),然后除了密码,一路默认
      ssh-keygen -t ras -C "xxxx@domain.com"

    在默认的路径下便生成了自己的id_ras.pub

    • 查看id_ras.pub的内容
      cat path/to/id_ras.pub
    • 将id_rsa.pub中的内容拷贝

    在Github中授权

    • 打开Github,点击头像->Setting
    • 然后点击左边栏的SSH and GPG keys
    • 在SSH keys右边点击New SSH key
    • 填入一个SSH key的tittle, key框内粘贴如上一步来自Mac的id_ras.pub内容Add SSH key
    • 点击Add SSH key
      到此设备授权成功。
  • 相关阅读:
    日报10.11
    日报10.9
    日报10.8
    日报10.7
    换马甲啦
    CSP2019知识点整理
    字符logo存档
    QHDYZ模拟赛20191027 提前透题
    数竞大佬jhc的三角函数复习题
    IO流
  • 原文地址:https://www.cnblogs.com/houjun/p/10484042.html
Copyright © 2011-2022 走看看