Can one set an agent timeout for a specific host?

Chris Green cl at isbd.net
Thu Jun 6 18:04:17 AEST 2024


On Thu, Jun 06, 2024 at 08:52:06AM +1000, Darren Tucker wrote:
> On Wed, 5 Jun 2024 at 22:20, Chris Green <cl at isbd.net> wrote:
> > If I set a timeout for a specific host's key does it set the timeout
> > for just that key/host?
> [...]
> >     Host backup
> >         IdentityFile ~/.ssh/backup_id_rsa
> >         IdentityAgent 600
> 
> I think you meant AddKeysToAgent?
> 
Yes, of course, sorry!

> > Will it just time out the key saved for backup and leave any other
> > keys with the default no timeout?
> 
> Yes this will only affect the key added when connecting to this host.
> 
Excellent, thank you.

-- 
Chris Green


More information about the openssh-unix-dev mailing list