![landscape photo of castle on top of mountain peak](https://www.supertechcrew.com/automatically-lock-gpg-ssh-agent-screen-lock/john-roberts-W6wJvZz3f1U-unsplash_hu3d03a01dcc18bc5be0e67db3d8d209a6_630702_cfa0206ab9299a29771d6af4b3e30a50.jpg)
How to Lock GPG/SSH Agents when Screen Locks or After a Timeout
When we aren’t using GPG/SSH, it’s best to lock it. We can set this to happen after a set time, and/or when the screensaver activates. This helps to keep our credentials secure.
When we aren’t using GPG/SSH, it’s best to lock it. We can set this to happen after a set time, and/or when the screensaver activates. This helps to keep our credentials secure.