Connection closed by remote host Connection closed by 198.18.34.15 port 22 Could not read from

提交代码时,报错Connection closed by remote host
Connection closed by 198.18.34.15 port 22
Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.

在这里插入图片描述
搞了5分钟最后,重新生成了ssh密钥,然后换了github上的密钥,最后好了
ssh密钥生成:

[root@localhost ~]# ssh-keygen -t rsa       <== 建立密钥对,-t代表类型,有RSA和DSA两种
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa):   <==密钥文件默认存放位置,按Enter即可
Created directory '/root/.ssh'.
Enter passphrase (empty for no passphrase):     <== 输入密钥锁码,或直接按 Enter 留空
Enter same passphrase again:     <== 再输入一遍密钥锁码
Your identification has been saved in /root/.ssh/id_rsa.    <== 生成的私钥
Your public key has been saved in /root/.ssh/id_rsa.pub.    <== 生成的公钥
The key fingerprint is:
SHA256:K1qy928tkk1FUuzQtlZK+poeS67vIgPvHw9lQ+KNuZ4 root@localhost.localdomain
The key's randomart image is:
+---[RSA 2048]----+
|           +.    |
|          o * .  |
|        . .O +   |
|       . *. *    |
|        S =+     |
|    .    =...    |
|    .oo =+o+     |
|     ==o+B*o.    |
|    oo.=EXO.     |
+----[SHA256]-----+

替换ssh
在这里插入图片描述

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
这个错误消息 "Connection closed by remote host Connection closed by 64.69.37.68 port 22" 表明远程主机以及端口22关闭了连接。具体原因可能有很多,以下是一些可能的原因: - 网络连接故障:可能是由于网络问题导致连接中断,可以尝试重新建立连接或者检查网络设置。 - 防火墙限制:远程主机可能设置了防火墙规则,阻止了端口22的访问。你可以检查防火墙配置并确保允许端口22的连接。 - 远程主机配置问题:远程主机可能存在一些配置问题,比如SSH服务未启动或者配置错误。你可以检查远程主机的SSH配置并确保SSH服务正在运行。 你可以尝试以下方法排查问题: 1. 检查网络连接是否正常,确保网络连接稳定。 2. 检查远程主机的防火墙设置,确保端口22的连接不被阻止。 3. 检查远程主机的SSH服务配置,确保SSH服务已正确配置并在运行。 如果以上方法仍然无法解决问题,建议联系远程主机的管理员或技术支持,以获取更详细的帮助和支持。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* [kubeasz一键部署harbor、containerd运行时、高可用k8s(1.26.x)集群-Day 02](https://blog.csdn.net/qq_42515722/article/details/130202408)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] - *2* *3* [解决Java调用Azure SDK证书错误javax.net.ssl.SSLHandshakeException](https://blog.csdn.net/chiliang1877/article/details/100796874)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值