How to set the session timeout in systemd-logind

Solution Verified - Updated -

Issue

  • Our sessions for RHEL 8 are not timing out and becoming inactive.
  • SSH ClientAlive* options no longer work as they used to in previous versions of RHEL and an alternative solution is required.

Environment

  • Red Hat Enterprise Linux 8.7 and later
    • systemd-239-68
  • Red Hat Enterprise Linux 9.1 and later
    • systemd-250-12

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content