# HG changeset patch # User HansH111 # Date 1647193118 0 # Node ID 2839daa507b3e1cd34af8c4d810fb5f4b276a950 # Parent d39cfedaf0158b05d86c82a7a2673983b3ea3b33 set envvar SSH_PUBKEYINFO if authstate.pubkey_info contains information diff -r d39cfedaf015 -r 2839daa507b3 svr-chansession.c --- a/svr-chansession.c Sun Mar 13 17:38:13 2022 +0000 +++ b/svr-chansession.c Sun Mar 13 17:38:38 2022 +0000 @@ -1030,6 +1030,9 @@ if (chansess->original_command) { addnewvar("SSH_ORIGINAL_COMMAND", chansess->original_command); } + if (ses.authstate.pubkey_info != NULL) { + addnewvar("SSH_PUBKEYINFO", ses.authstate.pubkey_info); + } /* change directory */ if (chdir(ses.authstate.pw_dir) < 0) {