News for hackers. Stuff that matters.
Re:We updated our RSA SSH host key by LeonM on Friday March 24, 2023 @09:36AM (#35288881)
> How can openssh documentation be vendor-specific?

I isn't, because the cryptography is (in case of HSM) not handled by OpenSSH itself. So OpenSSH's configuration has nothing to do with the HSM.

Usually, the actual cryptographic functions are not performed user-space, but handled by the kernel, which in turn can offload this to dedicated hardware. Basically if you compile OpenSSH for it to use kernel level TLS, then OpenSSH can work with a HSM without it even knowing it.

Disclaimer: this is simplified explanation, there is a lot more to this, and I am by no means an expert on this matter.

Re:We updated our RSA SSH host key by lxgr on Friday March 24, 2023 @09:45AM (#35289000)
So you‘re saying that OpenSSH has an interface for that on the host key side?

I‘m aware of the PKCS#11 integration in the OpenSSH client and have dabbled a bit with it but was not aware of any server side equivalent.

And how does TLS fit in here? SSH is a very different protocol from that, no?

Update: I can't find any OpenSSH documentation of either (server-side) PCKS#11/HSM support or kernel-mode cryptography (which also in the case of Linux only addresses symmetric encryption to my knowledge, at least the mainline kernel version I know of).

Maybe you're thinking of some other SSH implementation? The protocol definitely allows for server-side HSM usage, and Github at their scale is not bound to OpenSSH in any way.

Re:We updated our RSA SSH host key by mlyle on Friday March 24, 2023 @10:21AM (#35289411)
It's just the agent protocol, used by sshd instead of ssh, to make signing requests with a host key (instead of a user's identity key).
Re:We updated our RSA SSH host key by lxgr on Friday March 24, 2023 @11:42AM (#35290584)
That's cool, I wasn't aware that the server supports the agent protocol as well. Thank you for the pointer!

It makes a lot of sense, since it avoids having to link the HSM/PCKS#11 stuff against sshd.

Re:We updated our RSA SSH host key by throw0101b on Friday March 24, 2023 @10:59AM (#35289907)
> I can't find any OpenSSH documentation of either (server-side) PCKS#11/HSM support

OpenSSHd talks to an ssh-agent that then talks to the HSM:

> Identifies the UNIX-domain socket used to communicate with an agent that has access to the private host keys. If the string "SSH_AUTH_SOCK" is specified, the location of the socket will be read from the SSH_AUTH_SOCK environment variable.

* https://man.openbsd.org/sshd_config#HostKeyAgent

Re:We updated our RSA SSH host key by lxgr on Friday March 24, 2023 @11:41AM (#35290571)
Interesting, I didn't know that OpenSSHd supported the agent protocol. Thank you!