易陆发现互联网技术论坛

 找回密码
 开始注册
查看: 8|回复: 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
) l5 E- o$ v1 s2 q  |! p# L% l9 v3 Q8 g; b/ J: i
解决办法:) N) I- t- @+ F' g3 I0 L. y9 j
临时的方法:
( P2 v3 }' A% |+ q& l& {: fssh -p 60028 -oHostKeyAlgorithms=+ssh-dss  test@172.24.21.25
7 y& }& L: |$ i0 S2 k: J' t
! q* s, e# T. L6 m. R# M0 W9 o- \3 g9 U2 U4 x0 C
, s- b# p- @+ G# c( D: N$ n# e# s
DSA key fingerprint is SHA256:T99fx0H/TDICH+lHiH71ykkmWUK2nK48i0ljvnOrulg.* ?7 K; w, a# `8 W( S) [
This key is not known by any other names.
+ {; U8 q( `& C6 r$ Q& m. }Are you sure you want to continue connecting (yes/no/[fingerprint])? yes! X% M) Z( z& F$ r# A* m; d
4 ]  k0 b- W7 h8 f( P
* H  L& ^# ~; B: l. g
# O' e( x- _& E6 d1 {
 楼主| 发表于 2024-5-8 17:19:12 | 显示全部楼层
在ssh的配置文件中添加全局选项4 Z" Z1 g' q( J2 ]" @2 t
' y, l0 W5 J: I  v
HostKeyAlgorithms +ssh-dss
; `& q  q  t2 D  T
3 p$ C; v1 N' ]. H* z- 添加到配置 ~/.ssh/config- N/ B$ l0 c* V3 U" |/ v

7 y5 c4 v$ n! l, c4 s$ `' l6 O- 添加到 /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 21:30 , Processed in 0.047052 second(s), 23 queries .

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

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