David Newall
2018-11-14 01:29:35 UTC
Hello all,
Some while ago I developed a small patch for sshd, for internal
consumption, so that, when a client uses a private key, the
corresponding public key is exported in the environment. I use it to
identify which of a multitude of devices is logged in to a shared
account, but I'm sure there are many uses to which it could be put.Â
Now, I wonder whether there already was a way of achieving the same
result. I need to be able to identify previously unseen devices, so I
cannot just store the public key (c.f. authorized_keys) before use.
If this patch does indeed provide a new function (could not otherwise
achieve the desired outcome), is it something which would be welcomed
for inclusion in the official source? I've attached the patch so that
you can see what's involved.
Regards,
David
Some while ago I developed a small patch for sshd, for internal
consumption, so that, when a client uses a private key, the
corresponding public key is exported in the environment. I use it to
identify which of a multitude of devices is logged in to a shared
account, but I'm sure there are many uses to which it could be put.Â
Now, I wonder whether there already was a way of achieving the same
result. I need to be able to identify previously unseen devices, so I
cannot just store the public key (c.f. authorized_keys) before use.
If this patch does indeed provide a new function (could not otherwise
achieve the desired outcome), is it something which would be welcomed
for inclusion in the official source? I've attached the patch so that
you can see what's involved.
Regards,
David