ssh-keysign — OpenSSH helper for host-based authentication
| Use Case | Command / Config | Description |
|---|---|---|
| 🔑 Enable host-based authentication | EnableSSHKeysign yes in /etc/ssh/ssh_config |
Allows ssh-keysign to be invoked by ssh(1) for host-based authentication |
| ⚙️ Automatic invocation | ssh-keysign (invoked by ssh) |
ssh-keysign is called automatically by ssh(1) when host-based authentication is configured; no direct user invocation needed |
| 🔐 Required host key files | /etc/ssh/ssh_host_*_key |
Private keys (DSA, ECDSA, Ed25519, RSA) must be owned by root and readable only by root; ssh-keysign must be set-uid root |
ssh-keysign
ssh-keysign is used by ssh(1) to access the local host keys and generate the digital signature required during host-based authentication.
ssh-keysign is disabled by default and can only be enabled in the global client configuration file /etc/ssh/ssh_config by setting EnableSSHKeysign to "yes".
ssh-keysign is not intended to be invoked by the user, but from ssh(1). See ssh(1) and sshd(8) for more information about host-based authentication.
/etc/ssh/ssh_config — Controls whether ssh-keysign is enabled./etc/ssh/ssh_host_dsa_key/etc/ssh/ssh_host_ecdsa_key/etc/ssh/ssh_host_ed25519_key/etc/ssh/ssh_host_rsa_key
/etc/ssh/ssh_host_dsa_key-cert.pub/etc/ssh/ssh_host_ecdsa_key-cert.pub/etc/ssh/ssh_host_ed25519_key-cert.pub/etc/ssh/ssh_host_rsa_key-cert.pub
ssh-keysign first appeared in OpenBSD 3.2.
Markus Friedl <markus AT openbsd.org>
BSD — November 30, 2019
Generated by phpman v4.9.26-1-g511901d · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-08-04 10:29 @216.73.216.183
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format