The ssh-add
command lets you specify the lifetime of an identity being added to ssh-agent
. For example, if I type
ssh-add -t 1h
the identify will expire after 1 hour. I can then list the identities currently represented by the agent using ssh-add -l
.
Is there a way (other than recording information when I run the ssh-add
command) to determine the remaining lifetime of an identity? If not, is there some security-related reason why there shouldn't be a way to get this information?