SlowServers Admin wrote on 19.09.2026 02:58:
Hi misc@,

I would like the OpenSSH (daemon) to pass an environment variable into the
session with the SSH key contents and fingerprint.

I started to think this was possible and pieced together a configuration
including this in /etc/ssh/sshd_config:

SetEnv TESTSSHKEYFINGERPRINT=%f

However, I just see the variable set to %f...

I also don't see in the sshd_config man page that SetEnv accepts tokens.

The man page for sshd_config(5) lists the keywords and which keyword accepts which token in the TOKEN section.

What are you trying to achieve?

The client already has that information and can pass it to the remote session if it wants it available.

Am I missing something? Is this not currently supported, or is there a
way to do it?

It sounds like this is possibly supported in ssh_config, but not sshd_config.

Thank you!

-Slow Servers

Reply via email to