<div dir="ltr">Hi Matt,<div><br></div><div>This is a patch for the serverpart of dropbear:</div><div>- cmdline option -U &lt;username&gt;  forcing all user logins to use 1 fixed user</div><div>- If used, the original user will be saved in env var SSH_ORGUSER</div>

<div>- if a public key is used to grant a user access, the info part of the ssh key will be saved in env.var SSD_PUBKEYINFO<br></div><div>  ssh keylayout :   &lt;opts&gt; &lt;keytype&gt; &lt;keydata&gt; &lt;info&gt;</div>

<div><br></div><div>So if you do:  dropbear -U osuser</div><div>and : ssh root@mysystem  , user will login as osuser</div><div>and the env var SSH_ORGUSER will be set to &quot;root&quot;</div><div><br></div><div>I use this with ssh pubkey authentication only, and the SSH_PUBINFO gives me information in my .profile which public key (=user) was used.<br>

</div><div><br></div><div><br></div><div>patchfile is against version 2014.65</div><div><br></div><div>Hans</div><div><br></div><div><br></div></div>