`

Warning: Permanently added the RSA host key for IP address '192.30.253.113' to t

    博客分类:
  • git
 
阅读更多

 

第一次把本地的git项目上传github,会报错,是因为没有在github上添加本地的一个公钥

 

1.进入命令行,使用命令 ssh -T git@github.com 如果出现下面提示说明本地没有github的ssh公私钥

 

 

2.这时候就要在本地生成秘钥,敲击命令 ssh-keygen -t rsa -C "github account",然后windows在C:\Users\Administrator(当前用户)\.ssh

目录下有id_rsa和id_rsa_pub两个文件,分别存放私钥和公钥。linux的话文件位置如图中所示

 

3.在github上添加上面的公钥

右键头像-->Settings-->SSH and GPS keys-->New SSH key 

title:随意,建议设置成可以标志公钥所属机器的字符

key:将上面id_rsa_pub中内容整个拷入

 

好了,可以将本机上的git项目上传到github了

  • 大小: 20.4 KB
  • 大小: 94.2 KB
分享到:
评论

相关推荐

    Ansible报错解决方法...added 'IP' (ECDSA) to the list of known hosts

    在使用Ansible自动化运维工具时,可能会遇到各种错误情况,其中一种常见的报错是"Permanently added 'IP' (ECDSA) to the list of known hosts"。这个错误信息是由于SSH安全策略导致的,当Ansible尝试连接到一个新的...

    oracle asm rac

    192.168.10.101 scanip 修改/etc/hosts文件添加以上内容 # vi /etc/hosts 192.168.10.10 node1 192.168.10.20 node2 #vip 192.168.10.100 node1vip 192.168.10.200 node2vip #private 192.168.20.10 node1priv 192....

    leetcode题库-Data-Dtructure-and-Dynamic-Programming:动态规划学习目录

    leetcode题库 Dynamic Programming and Data Structure(数据结构与动态规划) 由于一些敏感因素,因此之前GitHub的master...[ubuntu使用git的时:Warning: Permanently added the RSA host key for IP address '13.250.1

    Permanently ping application.-开源

    标题中的“Permanently ping application”指的是一个持续运行的网络诊断工具,它的主要功能是不断地向指定的目标发送ICMP(Internet Control Message Protocol)回显请求,即我们常说的“ping”命令,以检测网络...

    linux搭建git服务器

    Warning: Permanently added '192.168.56.101' (RSA) to the list of known hosts. ``` - 此时会在客户端用户的`.ssh`目录下生成`known_hosts`文件。 #### 五、SSH公钥验证配置 1. **客户端创建SSH密钥对:** ...

    tModLoader.Windows.v0.11.6.2.7z

    If that file launches tModLoader or you wish to permanently revery to un-modded Terraria, you need to use steam to "verify game integrity" which will restore the files back to the un-modded Terraria....

    AWS亚马逊ssh登录失败 Permissions 0644 for .pem are too open

    说明 AWS亚马逊ssh登录失败 Permissions...Warning: Permanently added 'yourAwsAddress.compute.amazonaws.com,00.00.00.00' (ECDSA) to the list of known hosts. @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

    VMware vsan+ 故障查询+信息状态查询

    Warning: Permanently added '192.168.11.75' (vim) to the list of known hosts Welcome to RVC. Try the 'help' command. 0 /1 192.168.11.75/>> ``` #### 三、RVC常用命令 1. **基本命令** - `cd`:用于...

    NGUI Next-Gen UI 3.0.7 f1.unitypackage

    - NEW: Added a "next page threshold" value to UICenterOnChild for when you want to swipe to move to the next page. - NEW: If the mouse events are off and touch events are on, NGUI will now fake ...

    nubo:从命令行在不同的云提供商上部署 Linux VM

    Public IP: 54.247.8.150然后在其上安装 puppet: $ ssh root@54.247.8.150 "apt-get -y install puppet"Warning: Permanently added '54.247.8.150' (RSA) to the list of known hosts.Reading pac

    servlet2.4doc

    The doFilter method of the Filter is called by the container each time a request/response pair is passed through the chain due to a client request for a resource at the end of the chain. doGet...

    最牛比的css菜单生成工具(收藏)-不下后悔一辈子

    Flash does have parameters and embed codes that can be added to the Flash object to allow for dynamic content, such as menus to display on top of the Flash object. The wmode Parameter-

    AVG 破解版

    3. The Licensor reserves the right to block accounts/license codes that have not been paid for by the user in due time or that stood out through a very high number of updates until settlement of the ...

    Balluff Easy-RFID.pdf

    - **Efficient Signal Bundling:** Sensor hubs allow for the bundling of signals from up to 16 sensors/actuators per hub, reducing bus nodes and simplifying network topology. - **Reduced Inputs/Outputs:...

    system mechanic Activator v1.0

    14. Enter any email address below the Activation Key field. 15. Click on "OK", and smile to your licensed System Mechanic. Help/Troubleshooting/General Info: ********************************** ...

    SAA-CO1.462Q.AWS-SAA(英).pdf

    Use Reserved Instances to ensure the system has reserved the right amount of capacity for the scale-up events. D. Permanently keep a steady state of instances that is needed at 9:00 AM to guarantee ...

    使用 Python ssh 远程登陆服务器的最佳方案

    在使用 Python 写一些脚本的时候,在某些情况下,我们需要频繁登陆远程服务去执行一次命令,并返回一些结果。 在 shell 环境中,我们是这样子做的。...Warning: Permanently added ‘[xx.xx.xx.xx]:xx

    polycom宝利通视频会议软件3.9 2018

    POLYCOM grants to you a non-exclusive, non- transferable (except as set forth herein), perpetual (unless otherwise terminated per the terms of this Agreement) license to install and use, on a DEVICE,...

    word自动转化为chm

    You may modify your Word documents now and then, and you can save a Word-2-CHM project file for each Word document so that you don't need to fill the information again when you create CHM file next ...

    无人永生源代码 v1.003

    (b) The Software may include "Source Code." "Source Code" is a feature which allows you to modify the Software or to construct new variations for use with it. These modifications and variations can be...

Global site tag (gtag.js) - Google Analytics