大网数据广告活动
服务器运维问答

How to trust CA-signed host keys in PuTTY?

· 52CE 我爱测

I have something like this in ~/.ssh/known_hosts on my Linux machine: @cert-authority * ssh-rsa pubkeypubkeypubkey And any server with a signed host key is automatically trusted by the OpenSSH client. I regularly use PuTTY on my …

问题原文

原帖链接 · iBug · CC BY-SA 4.0

I have something like this in ~/.ssh/known_hosts on my Linux machine:

@cert-authority * ssh-rsa pubkeypubkeypubkey

And any server with a signed host key is automatically trusted by the OpenSSH client.

I regularly use PuTTY on my Windows PC. How do I achieve something similar?

已采纳解答

原帖链接 · HBruijn · CC BY-SA 4.0

2023 Update

PuTY added support for CA certificate authentication in version 0.78 released on 2022-10-29

PuTTY 0.78, released today, is a feature release. Its major new feature is support for OpenSSH's certificate system. PuTTY can now present certified user keys to an SSH server, and you can configure one or more trusted CAs so that it will automatically accept host keys signed by them.

...

And as commented: see https://www.chiark.greenend.org.uk/~sgtatham/quasiblog/putty-certificates/ for more implementation background details.

Configuration is described in the manual

4.19.4 Configuring PuTTY to accept host certificates

In some environments, the SSH host keys for a lot of servers will all be signed in turn by a central ‘certification authority’ (‘CA’ for short). This simplifies host key configuration for users, because if they configure their SSH client to accept host keys certified by that CA, then they don't need to individually confirm each host key the first time they connect to that server.

In order to do this, press the ‘Configure host CAs’ button in the ‘Host keys’ configuration panel. This will launch a secondary configuration dialog box where you can configure what CAs PuTTY will accept signatures from.

...


Old answer

CA certificate authentication as implemented by OpenSSH is not supported by PuTTY (yet).

No evidence of such a feature is found in the current ChangeLog and as a feature request it is also still listed as open on the PuTTY WishList

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2019-09-16)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。