找回密码
 注册
查看: 14|回复: 2

no matching host key type found. Their offer: ssh-rsa,ssh-dss

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2024-5-8 17:17:31 | 显示全部楼层 |阅读模式
no matching host key type found. Their offer: ssh-rsa,ssh-dss  U7 e; @7 y* F( n+ r0 }1 ~3 Q

) k! r7 ^- U. ~6 Q& Z解决办法:
8 X) d- J* w% M- o临时的方法:" q+ ~+ |) r* v- c
ssh -p 60028 -oHostKeyAlgorithms=+ssh-dss  test@172.24.21.25
3 R- q7 r$ q, m& M' l% A1 E. j+ I$ f" U/ f
$ W5 \% W3 E- M1 u
8 q# [, p# Z: p' }- g
DSA key fingerprint is SHA256:T99fx0H/TDICH+lHiH71ykkmWUK2nK48i0ljvnOrulg.5 p" I8 `( p! f5 I7 s- ?
This key is not known by any other names.- N. w# x& G$ c- g
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes' G2 C5 _& c# g0 ]$ q8 A& o% ?; h

/ h% h7 X8 g3 P' h8 ~" t2 L! o2 X: J6 E" g2 r0 |
( l2 {9 m" M1 y/ @. m" ]  `

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2024-5-8 17:19:12 | 显示全部楼层
在ssh的配置文件中添加全局选项
" h. r$ P& B* f* F
. f! {* l& C+ W( w) n/ g1 NHostKeyAlgorithms +ssh-dss
  B1 \+ J3 q# N! {! f8 Z7 z( L. |9 X2 I8 }! {
- 添加到配置 ~/.ssh/config; O6 t  y5 Y0 K; W( F; I% y' }* j

" a6 |% u5 N6 F+ U* ?3 b- 添加到 /etc/ssh/ssh_config

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2024-11-19 10:02:41 | 显示全部楼层
ssh -o HostKeyAlgorithms=+ssh-rsa -o PubkeyAcceptedKeyTypes=+ssh-rsa root@xxx.xxx.xxx.xxx
您需要登录后才可以回帖 登录 | 注册

本版积分规则

返回首页|Archiver|手机版|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )

GMT+8, 2026-6-12 00:48 , Processed in 0.015054 second(s), 23 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表