In this article, we will explain how to auto disconnect inactive or idle SSH sessions or connections in Linux after certain minutes of inactivity.