Re: ssh key used for login

2020-08-09 Thread Rainer Dorsch
Am Samstag, 8. August 2020, 02:26:20 CEST schrieb Kushal Kumaran: > Rainer Dorsch writes: > > Hi, > > > > can anybody tell if there is a way to find out the ssh key (out of the > > ones > > listed in authorized keys) was used for login to the current session? > > See the environment="NAME=value"

Re: ssh key used for login

2020-08-08 Thread echo test
If what you use is a certificate based authentication, you can add user identity to the certificate with -I . Any auth attempt will make that identity logged automatically. Then you just have to get it from syslogs. Le sam. 8 août 2020 à 02:26, Kushal Kumaran a écrit : > Rainer Dorsch writes:

Re: ssh key used for login

2020-08-07 Thread Kushal Kumaran
Rainer Dorsch writes: > Hi, > > can anybody tell if there is a way to find out the ssh key (out of the ones > listed in authorized keys) was used for login to the current session? > See the environment="NAME=value" part in the authorized_keys(5) manpage. You can have each entry in authorized_ke

Re: ssh key used for login

2020-08-07 Thread Rainer Dorsch
Am Freitag, 7. August 2020, 17:47:31 CEST schrieb john doe: > On 8/7/2020 5:07 PM, Rainer Dorsch wrote: > > Hi, > > > > can anybody tell if there is a way to find out the ssh key (out of the > > ones > > listed in authorized keys) was used for login to the current session? > > Try to increase the

Re: ssh key used for login

2020-08-07 Thread tomas
On Fri, Aug 07, 2020 at 07:09:34PM +0200, Rainer Dorsch wrote: > Am Freitag, 7. August 2020, 17:47:31 CEST schrieb john doe: > > On 8/7/2020 5:07 PM, Rainer Dorsch wrote: > > > Hi, > > > > > > can anybody tell if there is a way to find out the ssh key (out of the > > > ones > > > listed in authori

Re: ssh key used for login

2020-08-07 Thread john doe
On 8/7/2020 5:07 PM, Rainer Dorsch wrote: Hi, can anybody tell if there is a way to find out the ssh key (out of the ones listed in authorized keys) was used for login to the current session? Try to increase the log verbosity to 'debug[1|2|3]'. -- John Doe

ssh key used for login

2020-08-07 Thread Rainer Dorsch
Hi, can anybody tell if there is a way to find out the ssh key (out of the ones listed in authorized keys) was used for login to the current session? Thanks Rainer -- Rainer Dorsch http://bokomoko.de/