首页 > 其他分享 >ssh远程redhat6报错:Unable to negotiate with *.*.*.* port 22: no matching host key type found. Their offe

ssh远程redhat6报错:Unable to negotiate with *.*.*.* port 22: no matching host key type found. Their offe

时间:2023-06-02 11:35:09浏览次数:46  
标签:rsa Their Unable 报错 ssh key matching

报错:Unable to negotiate with *.*.*.* port 22: no matching host key type found. Their offer: ssh-rsa,ssh-dss

分析:openssh觉得ssh-rsa加密方式不安全, 直接从8.8开始默认不允许这种密钥用于登陆了

 

解决:

cat /etc/ssh/ssh_config.d/redhat6.conf
Host *
PubkeyAcceptedKeyTypes +ssh-rsa
HostKeyAlgorithms +ssh-rsa

第一行说明对所有主机生效,

第二行是将ssh-rsa加会允许使用的范围,

第三行是指定所有主机使用的都是ssh-rsa算法的key

标签:rsa,Their,Unable,报错,ssh,key,matching
From: https://www.cnblogs.com/santia-god/p/17451257.html

相关文章

  • IDE 中登录 Github 报错 Invalid authentication data. 404 Not Found-Not Found.
    IDE中登录 Github 报错Invalidauthenticationdata.404NotFound-NotFound. 一、方法一使用token令牌进行身份验证(推荐)相对于使用账号密码,token令牌是一种更安全的身份验证方式。1、进入Github的token管理页面:https://github.com/settings/tokens如下图可见,我之前在ID......
  • IDE 中登录 Github 报错 Invalid authentication data. 404 Not Found-Not Found.
    IDE中登录 Github 报错Invalidauthenticationdata.404NotFound-NotFound. 一、方法一使用token令牌进行身份验证(推荐)相对于使用账号密码,token令牌是一种更安全的身份验证方式。1、进入Github的token管理页面:https://github.com/settings/tokens如下图可见,我之前在ID......
  • 【python】Python报错:RecursionError: maximum recursion depth exceeded in comparis
    问题描述今天测试程序的时候报错了RecursionError:maximumrecursiondepthexceeded通过查阅资料发现原因是查询过相关文档和资料后才发现了问题原因,python的递归深度是有限制的,默认为1000。当递归深度超过1000时,就会报错。解决方案可以将递归的深度修改的大一些,即可解决......
  • ssh远端端口转发的一个问题和解决方法
    现在假设有主机local_A,主机remote_B,remote_B可以被外界访问,而local_A不行。这种情况下,我们可以通过ssh的远端端口转发的功能,来实现外界访问local_A的特定端口。在local_A上执行下面的命令为向外界暴露local_A的80端口,ssh-f-N-R8080:localhost:80zwl@remote_B-f表示在......
  • 使用kalibr做相机内参标定时,报错:“ImportError: No module named igraph”
    这是因为电脑没有安装python的igraph库,所以需要安装igraph库。1.sudoapt-getinstall-ylibigraph0-dev 2.pipinstallpython-igraph==0.7.1.post6(python2只支持0.8X以前的版本)安装完毕,执行kalibr相机内参标定命令即可。 ......
  • windows cmd使用ssh连接Linux以及文件上传
    CMD连接服务器命令(47.102.144.221为服务器IP)[email protected]文件上传(scp后面参数为本地文件地址,47.102.144.221为服务器IP,冒号后面指将文件上传到服务器哪个目录下)scpD:\[email protected]:/server/tmp如何要从服务器下载文件还是使用scp命令如下:sc......
  • 阿里Druid数据源,程序启动或日志记录报错 load filter error, filter not found : logb
      Druid支持配置多种Filter,配置信息保存在druid-xxx.jar!/META-INF/druid-filter.properties下面,具体如下:druid.filters.default=com.alibaba.druid.filter.stat.StatFilterdruid.filters.stat=com.alibaba.druid.filter.stat.StatFilterdruid.filters.mergeStat=com.a......
  • 禁止运行脚本的报错怎么处理
       windows下运行*.ps1脚本(powershell的脚本)的时候,需要设置执行权限执行set-ExecutionPolicyRemoteSigned ......
  • nethunter终端进入KALI时报错问题
    在我的设备安装Nethunter成功后,使用NetHunter内置的连接终端工具连接时报了一个这样的错误zsh:failedtoloadmodule`zsh/zle':/usr/lib/aarch64-linux-gnu/zsh/5.9/zsh/zle.so:cannotopensharedobjectfile:Nosuchfileordirectorykali#使用SSH连接也是一样的错......
  • Jenkins集成sonarqube报错
    报错1SONARANALYSISFAILED------------------------------------------------------------------------FATAL:SonarQubeScannerexecutablewasnotfoundforsonarscannerERROR:SonarQubeScannerexecutablewasnotfoundforsonarscannerFinished:FAILURE说明......