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


Groups > linux.debian.user > #225996

Re: ssh key used for login

From Kushal Kumaran <kushal@locationd.net>
Newsgroups linux.debian.user
Subject Re: ssh key used for login
Date 2020-08-08 02:30 +0200
Message-ID <ABkUh-5CF-1@gated-at.bofh.it> (permalink)
References <ABcDn-An-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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