不同版本服务器间 SSH 免密码登录失败 #25
shenweiyan
announced in
1.3-折腾
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
今天从服务器 A(CentOS 7.3)配置 SSH 无密码登录服务器 B(CentOS Steam 9),发现执行以下常规操作后无法实现:
后来,更换 ecdsa 算法,问题才解决:
根本原因就在于 SHA-1 已经在 RHEL9 中弃用了!
从 RHEL9 的官网文档《1.0.2. Crypto-policies, RHEL core cryptographic components, and protocols(加密策略、RHEL 核心加密组件和协议)》可以看到 SHA-1 已经在 RHEL9 中弃用了!
在 RHEL 9 中,用于签名的 SHA-1 用法在 DEFAULT 系统范围的加密策略中受到限制。除 HMAC 外,TLS、DTLS、SSH、IKEv2、DNSSEC 和 Kerberos 协议中不再允许使用 SHA-1。不受 RHEL 系统范围的加密策略控制的单个应用程序在 RHEL 9 中也不再使用 SHA-1 hashes。
跨用户免密码登录
从服务器 A(CentOS 7.3)的 root 用户已配置 SSH 无密码登录服务器 B(CentOS Steam 9)的 shenweiyan 用户。
/root/.ssh目录会得到两个文件:参考资料
Beta Was this translation helpful? Give feedback.
All reactions