On Tue, Jan 24, 2006 at 11:04:33AM -0700, Spruell, Darren-Perot wrote:
> Is it possible to have sshd log information about the key used to
> authenticate to a given user account upon connection?
> 
> Our situation is that we have a user account that multiple people have
> access to log into to retrieve files. Each user authenticates to that
> account with their own SSH key. Current log entry shows:
> 
> Jan 24 11:01:20 sftp sshd[23555]: Accepted publickey for transfers from
> 10.2.58.44 port 1420 ssh2
> 
> Would be useful to have information logged for the connection identifying
> the key used to authenticate, by the key comment if possible. Does sshd
> already have this capability? Would anyone consider this a useful feature
> addition?

Only if you can provide a good reason this can not be implemented as a
couple of users and a shared group, combined with a group-writable
directory.

However, as to an actual solution, use the command= syntax in
authorized_keys (see sshd(8), under 'AUTHORIZED_KEYS FILE FORMAT', as
was pointed out to me on misc@ this week) to differentiate between keys,
if desired.

                Joachim

Reply via email to