Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #226015

Re: ssh key used for login

From echo test <echotest09@gmail.com>
Newsgroups linux.debian.user
Subject Re: ssh key used for login
Date 2020-08-08 16:50 +0200
Message-ID <AByky-5jf-3@gated-at.bofh.it> (permalink)
References <ABcDn-An-1@gated-at.bofh.it> <ABkUh-5CF-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

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 <kushal@locationd.net> a écrit :

> Rainer Dorsch <ml@bokomoko.de> 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_keys set a different value for
> some variable you pick.
>
> You may also be able to use command="command" creatively.  This is what
> gitolite does: https://gitolite.com/gitolite/glssh
>
> --
> regards,
> kushal
>
>

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

ssh key used for login Rainer Dorsch <ml@bokomoko.de> - 2020-08-07 17:40 +0200
  Re: ssh key used for login john doe <johndoe65534@mail.com> - 2020-08-07 17:50 +0200
    Re: ssh key used for login Rainer Dorsch <ml@bokomoko.de> - 2020-08-07 19:20 +0200
      Re: ssh key used for login <tomas@tuxteam.de> - 2020-08-07 21:10 +0200
  Re: ssh key used for login Kushal Kumaran <kushal@locationd.net> - 2020-08-08 02:30 +0200
    Re: ssh key used for login echo test <echotest09@gmail.com> - 2020-08-08 16:50 +0200
    Re: ssh key used for login Rainer Dorsch <ml@bokomoko.de> - 2020-08-09 22:00 +0200

csiph-web