SSH:The authenticity of host xxx can‘t be established.
问题截图
描述
回向整个过程,好像就是更换了IP地址,然后密钥什么的没有变化,还是之前的通用密钥。
判断:可能是因为当前使用的key连接的发生变化到直的,然后SSH检查的时候不通过
解决方法
1、使用ssh连接远程主机时加上“-o StrictHostKeyChecking=no”的选项,去掉对主机的验证检查。
ssh -o StrictHostKeyChecking=no 10.10.xxx.xxxssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no
2、当然你也可以直接改配置文件信息,这样彻底去掉验证。
修改/etc/ssh/ssh_config
文件(或$HOME/.ssh/config
)中的配置,添加如下两行配置:
StrictHostKeyChecking no
UserKnownHostsFile /dev/null
# 注:不过采用第二种方法,容易造成潜在的危险。可以参考Stackoverflow上的题:
# ssh: The authenticity of host ‘hostname’ can’t be established
参考解决:https://stackoverflow.com/questions/3663895/ssh-the-authenticity-of-host-hostname-cant-be-established
SSH:The authenticity of host xxx can‘t be established.相关推荐
- Git上传文件时报错:The authenticity of host xxx can‘t be established.
一.问题描述 当使用push命令把本地文件推到远端时,报错: 二.问题解决 1.生成密钥时,在.ssh文件夹中只有2个密钥文件,缺少known_hosts文件: 解决方法:先删除根目录下.ssh所有文 ...
- SSH的 The authenticity of host xxx.xxx.xxx.xxx can't be established. 问题
用ssh登录一个机器(换过ip地址),提示输入yes后,屏幕不断出现y,只有按ctrl + c结束 错误是:The authenticity of host xxx.xxx.xxx.xxx can't ...
- ssh连接的时候,出现“THE AUTHENTICITY OF HOST XXX CAN’T BE ESTABLISHED”警告
当使用ssh连接别的计算机时,会把连接的计算机的公钥记录在~/.ssh/known_hosts中,当下次再次访问时,openssh会核对公钥,如果公钥发生改变,openssh就会发出 "TH ...
- ssh登录The authenticity of host localhost can‘t be established.错误
当我们设置ssh免登录云服务器时出现以下报错: The authenticity of host 'localhost (::1)' can't be established. RSA key fin ...
- git clone时The authenticity of host ‘xxx‘ can‘t be established.
clone时出现如下: The authenticity of host 'gitee.com (212.64.62.183)' can't be established. ED25519 key f ...
- git使用ssh方式clone时出现 The authenticity of host XXX can‘t be established的解决方案
git使用ssh方式clone时出现 The authenticity of host can't be established的解决方案 1.删除根目录 .ssh 下的所有文件(Mac显示隐藏文件和 ...
- The authenticity of host xxx can‘t be established 错误
解决:忽略,直接输入yes即可!
- GIT克隆项目出现:The authenticity of host ‘gitee.com (xxx.xxx.xxx.xxx)‘ can‘t be established.
新生成密钥的时候,git clone或者push的时候,可能会报这样的错误: The authenticity of host 'gitee.com (xxx.xxx.xxx.xxx)' can't ...
- Gitee/GitHub使用SSH下载文件时报错:The authenticity of host ‘gitee.com (212.64.63.215)‘ can‘t be established.
Gitee/GitHub使用SSH下载文件时报错:The authenticity of host 'gitee.com (212.64.63.215)' can't be established. ...
最新文章
- jQuery选择器回顾,IE8还需要你发光发热
- python while循环语句-python while循环控制流语句结构与用法
- 04——确定对象使用前被初始化
- Redis 教程基于win10:1介绍
- 使用光标查询10部门的员工姓名和工资,并打印__使用光标查询员工姓名和工资,并打印
- 【枚举】连续自然数和(jzoj 2102)
- C this指针的理解和作用
- python分支结构基础实训_零基础Python教程-分支结构
- 深度优先搜索----poj 1321棋盘问题
- 爱奇艺数据中台负责人马金韬:数据中台建设与应用
- windows上安装使用mySql
- JavaScript 作用域不完全指北
- Atitit maven配置pom文件 配置法v2 t33 目录 1. Maven打包war原理	1 1.1. 在target目录生成war包ori目录。。。里面就是所有的资源	1 1.2. 去掉
- 【机器学习】 - 决策树(西瓜数据集)
- Windows10 永久激活查询/激活时间查询/激活查询命令/激活码查询
- 用html制作一个网站的步骤,新手怎么做网页 新手如何制作一个网页
- utc时间转换为时分秒_详解JavaScript UTC时间转换方法
- 开发一个app应用的流程有哪些
- 《计算机系统基础》—— 运算
- 「镁客早报」恒大健康称首款电动汽车拟6月投产;产业链透露苹果正悄悄准备Apple Car...
热门文章
- Scrapy 简易爬取Boss直聘 可设定city job 爬取工作到excel或mysql中
- 惩罚因子(penalty term)与损失函数(loss function)
- android 7.1 权限自动授权(不弹出授权对话框)
- mysql查询成绩大于89分_查询每门课程成绩都大于80分学生的姓名
- asu计算机科学排名,美本ASU计算机专业申硕圆梦Top前30名校
- android的手机壳,Android手机壳专场,送礼自用两相宜
- nodejs express 模板引擎(ejs )
- 滴滴企业版帮助减少企业开销,两个8%如何算出来?
- FT232R 芯片STC15F2K60S2电脑通讯功能实现代码
- 搜狗输入法 rpm包_两大输入法AI功能对比,百度输入法AI探索版这些功能好亮眼...