易陆发现互联网技术论坛

 找回密码
 开始注册
查看: 7|回复: 2
收起左侧

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

[复制链接]
发表于 2024-5-8 17:17:31 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?开始注册

x
no matching host key type found. Their offer: ssh-rsa,ssh-dss
( K) H, y$ _! q; U, A- v! h
9 g# w& M# s5 m解决办法:4 m' f6 T' G$ z
临时的方法:
" c1 j0 n7 A/ T, S6 F) q8 ~ssh -p 60028 -oHostKeyAlgorithms=+ssh-dss  test@172.24.21.251 |1 A; o8 V6 e2 t' ]+ ]0 t/ @
9 D" [( v+ Z5 i4 f1 x

0 W7 f% O2 D. e7 M, F7 n( P7 g. ?# k; v) c, l
DSA key fingerprint is SHA256:T99fx0H/TDICH+lHiH71ykkmWUK2nK48i0ljvnOrulg.  B" G( s. t% \& H: o( P3 l: o& g
This key is not known by any other names.
& M$ t# {8 R, t6 ?) V5 e, SAre you sure you want to continue connecting (yes/no/[fingerprint])? yes
! e# O3 q# {9 d7 o: n& M) R* v! W0 j
  B6 i8 D" G2 ?( m% N, {& r/ O' {. _9 U, G6 h9 n

( N9 {6 y0 [* R. U/ q; B( t
 楼主| 发表于 2024-5-8 17:19:12 | 显示全部楼层
在ssh的配置文件中添加全局选项3 G! T; E: J8 i( _8 T
: a* n+ V3 p" I9 G8 o* y. E
HostKeyAlgorithms +ssh-dss
. }! A9 }& V, G2 I1 k2 o: E; S* c' [! |8 @  n# D6 [
- 添加到配置 ~/.ssh/config, x$ I, y, V& B4 q
( i# f0 W0 O- }% C
- 添加到 /etc/ssh/ssh_config
 楼主| 发表于 2024-11-19 10:02:41 | 显示全部楼层
ssh -o HostKeyAlgorithms=+ssh-rsa -o PubkeyAcceptedKeyTypes=+ssh-rsa root@xxx.xxx.xxx.xxx
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

站长推荐上一条 /4 下一条

北京云银创陇科技有限公司以云计算运维,代码开发

QQ|返回首页|Archiver|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )点击这里给我发消息

GMT+8, 2026-4-8 20:23 , Processed in 0.043618 second(s), 23 queries .

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

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