美文网首页
Github 设置 SSH Key

Github 设置 SSH Key

作者: 夙小叶 | 来源:发表于2020-01-17 09:48 被阅读0次
ID=78184222
ssh-keygen -t rsa -C "your email"

# 选择存放目录以及密钥文件名
Enter file in which to save the key (/home/username/.ssh/id_rsa): /home/username/.ssh/id_rsa_github

# 使用密钥时是否密码验证,空为直接使用
Enter passphrase (empty for no passphrase): 
Enter same passphrase again: 

# .pub 后缀为公钥
cat ~/.ssh/id_rsa_github.pub

# 复制输出内容到 settings --> SSH and GPG keys --> New SSH key

# 验证 Key
ssh -T git@github.com

# Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
# Hi Your Github Username! You've successfully authenticated, but GitHub does not provide shell access.

相关文章

  • GitHub 的设置

    2. 为 GitHub 账号设置 SSH Key 为-GitHub-账号设置-SSH-Key) 出于安全考虑,Gi...

  • Github使用笔记

    一、配置Github环境 安装Git 配置ssh-key 检查ssh-key的设置 生成新ssh-key 添加ss...

  • github SSH key 设置

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

  • Github SSH Key设置

    1.Github注册 [http://www.github.com] 2.配置本地Git(mac) 生成SSHKe...

  • Github 设置 SSH Key

  • github设置添加SSH

    github设置添加SSH 为什么GitHub需要SSH Key呢?因为GitHub需要识别出你推送的提交确实是你...

  • 如何设置Github SSH key

    Github 为我们提供了 Desktop App 用于我们本地和GitHub上的Repository交互,但作为...

  • git入门

    一.设置SSH Key(每个设备只有一个) 1.进入https://github.com/settings/key...

  • 设置SSH Key

    全步骤GitHub入门与实践---第三章---3.1---设置SSH Key ssh-keygen -t rsa-...

  • Git学习笔记

    常用操作 设置 SSH Key "your_email@example.com"的部分请改成自己的GitHub注册...

网友评论

      本文标题:Github 设置 SSH Key

      本文链接:https://www.haomeiwen.com/subject/ffhczctx.html