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


Groups > linux.debian.user > #226044

Re: ssh key used for login

From Rainer Dorsch <ml@bokomoko.de>
Newsgroups linux.debian.user
Subject Re: ssh key used for login
Date 2020-08-09 22:00 +0200
Message-ID <ABZE5-4Z2-3@gated-at.bofh.it> (permalink)
References <ABcDn-An-1@gated-at.bofh.it> <ABkUh-5CF-1@gated-at.bofh.it>
Organization @home

Show all headers | View raw


Am Samstag, 8. August 2020, 02:26:20 CEST schrieb Kushal Kumaran:
> 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

Many thanks, for your suggestion, that looks promising, I will give it a try.

Rainer

-- 
Rainer Dorsch
http://bokomoko.de/

Back to linux.debian.user | Previous | Next — Previous 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