git中ssh推送出错解决方法 Warning: Permanently added ‘gitee.com,120.55.226.24’ (ECDSA) to the list of known hosts.

git使用ssh方式推送文件时出现如下错误解决方法:

Warning: Permanently added 'gitee.com,120.55.226.24' (ECDSA) to the list of known hosts.Bad packet length 1550728593.
ssh_dispatch_run_fatal: Connection to 120.55.226.24 port 22: Connection corrupted
fatal: Could not read from remote repository.

错误原因:没有公钥

第1步:创建SSH Key。在windows下查看[c盘->用户->自己的用户名->.ssh]下是否有id_rsa、id_rsa.pub文件,如果没有需要手动生成。
打开git bash,在控制台中输入以下命令。

$ ssh-keygen -t rsa -C "github用户名"


密钥类型可以用 -t选项指定。如果没有指定则默认生成用于SSH-2的RSA密钥。这里使用的是rsa。同时在密钥中有一个注释字段,用-C来指定所指定的注释,可以方便用户标识这个密钥,指出密钥的用途或其他有用的信息。所以在这里输入自己的github用户名。输入完毕后程序同时要求输入一个密语字符串(passphrase),空表示没有密语。接着会让输入2次口令(password),空表示没有口令。3次回车即可完成当前步骤,此时[c盘>用户>自己的用户名>.ssh]目录下已经生成好了。

第2步:登录github。
打开setting

SSH keys

点击右上角 New SSH key

把生成好的公钥id_rsa.pub放进key输入框中,再为当前的key起一个title来区分每个key。

ssh推送Warning: Permanently added 'gitee.com,120.55.226.24' (ECDSA) to the list of known ho相关推荐

  1. gssh推送 Warning: Permanently added 'gitee.com’to the list of known hosts.

    git中ssh推送出错解决方法 Warning: Permanently added 'gitee.com,120.55.226.24' (ECDSA) to the list of known ho ...

  2. Git上传代码时报错 Warning: Permanently added ‘gitee.com,212.64.62.174‘ (ECDSA) to the list of known host...

    Git上传代码时报错 Warning: Permanently added 'gitee.com,212.64.62.174' (ECDSA) to the list of known host... ...

  3. 一个方法解决Warning: Permanently added 'gitee.com,180.97.125.228' (ECDSA) to the list of

    问题:从Github或者码云clone项目时报错: Warning: Permanently added 'gitee.com,180.97.125.228' (ECDSA) to the list ...

  4. CentOS 6.5下SSH总提示Warning: Permanently added '****' (RSA) to the list of known hosts.

    通过了免密码验证后,但每次ssh或者scp的时候还总是提示: Warning: Permanently added '***(IP)' (RSA) to the list of known hosts ...

  5. ssh远程登录报错Warning: Permanently added ‘111.124.131.312‘ (ECDSA) to the list of known hosts.

    报错信息 : Warning: Permanently added '111.124.131.312' (ECDSA) to the list of known hosts. 解决办法 : vi /e ...

  6. 当主机使用ssh免密码登录时,出现Warning:Permanently added(RSA)to the list of known hosts警告

    问题描述:当主机使用ssh免密码登录时,出现Warning:Permanently added(RSA)to the list of known hosts警告 解决办法:vim /etc/ssh/s ...

  7. 解决SSH登录时出现Warning: Permanently added告警问题

    问题: hbase0slave01: Warning: Permanently added the ECDSA host key for IP address 'xxx.xxx.xxx.xxx' to ...

  8. 推送本地项目到gitee

        gitee与github很类似,它是国内的一个开源代码托管与版本管理平台,它的很多命令与github非常类似.下面介绍,将本地项目推送到gitee.这里以threesmart工程为例,进行说明 ...

  9. git提交出现警告Warning: Permanently added 'github.com,52.74.223.119' (RSA) to the list of known

    问题: Ubuntu 16.04 LTS执行 git pull时总会出现以下警告: 图1 警告 这个警告虽然不影响操作,但是看着碍眼啊.我昨天就开始摸索怎么解决这个问题,有人说在 /etc/hosts ...

最新文章

  1. Servlet--01--概念
  2. 大数据2 Hadoop伪分布模式配置部署
  3. SAP SHD0的详细简介
  4. tkinter中button按钮控件(三)
  5. 【linux】查看ip
  6. 外设驱动库开发笔记14:DS18B20温度变送器驱动
  7. 高性能MySQL(3)——创建高性能索引
  8. eclipse run on server 点不了finish_分享点经验 | springboot入门及编码
  9. [转]PHP 超全局变量详解 $GLOBALS $_SERVER $_GET $_POST $_COOKIE $_FILES $_ENV $_REQUEST $_SE
  10. ajax中POST请求与参数(请求体)设置
  11. matlab2c使用c++实现matlab函数系列教程-log10函数
  12. linux服务器端口的状态,Linux查看端口状态及关闭端口方法
  13. php中switch使用
  14. photoshop制作透明背景图片1
  15. C#安装包安装提示:已安装了该产品的另一个版本解决方法
  16. 外接竖屏显示器virtual box虚拟机屏幕分辨率不能自适应
  17. 武汉财政容灾系统应用案例
  18. MVC 音乐商店 第 6 部分: 使用数据批注模型验证
  19. 【CVPR 2021】Knowledge Review:知识蒸馏新解法
  20. LeetCode刷题100道,让你滚瓜烂熟拿下SQL

热门文章

  1. 旅行照片剪辑--呼伦贝尔篇--9.18
  2. 《吴军 阅读与习作讲义》 序和第3章 日常实用写作
  3. Vue3.x 报 Uncaught TypeError:Object(...) is not a function( Vue3对象不是函数解决思路)
  4. 接入支付宝手机网页支付详解
  5. Java 8 Lambda表达式官方入门教程(包括Lambda表达式介绍和语法)
  6. 篮球总是提示服务器维护中,范特西篮球经理3月7日服务器维护公告
  7. [单片机][IIC/I2C][APDS9960] 手势传感器 4种手势
  8. 编程时常犯的几个错误、应注意的事项以及技巧
  9. 例题SQL语句详解-数据库基本操作11-排序分组联合
  10. aac转化为mp3怎么转?