/ip/ssh/known-hosts
known-hosts
路由器 SSH 客户端信任的远程 SSH 服务器主机公钥。当您在交互式客户端的信任提示中回答
y时,或者使用add手动固定时,会存储密钥。当/ip/ssh中启用了known-hosts-validation时使用。完整指南请参阅 SSH。
ip/ssh/known-hosts
Type: Directory
路由器 SSH 客户端信任的远程 SSH 服务器主机公钥。当您在交互式客户端的信任提示中回答 y 时,或者使用 add 手动固定时,会存储密钥。当 /ip/ssh 中启用了 known-hosts-validation 时使用。完整指南请参阅 SSH。
| 参数 | 类型 | 描述 |
|---|---|---|
host | ip6Addr | 密钥所属 SSH 服务器的 IP 地址。 |
key | string | Public host key of the server as one OpenSSH-style entry: <type> <base64>, for example ssh-rsa AAAAB3.... Pasting the key of a different server stores it as-is; a mismatched key causes later connections to fail with host key not trusted. |
| 只读参数 | 类型 | 描述 |
|---|---|---|
key-type | enum (rsa | ed25519) | 固定主机密钥的密钥类型:rsa 或 ed25519。 |
fingerprint | string | 固定密钥的 SHA256 指纹。将其与该服务器上 /ip/ssh/print 显示的 host-key-fingerprint 进行比较。 |