• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

How to set user time out on SSH sessions?

Scheduled Pinned Locked Moved General pfSense Questions
10 Posts 3 Posters 2.3k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D
    Deadringers
    last edited by Jul 10, 2013, 2:06 AM

    Hi guys,

    I am currently setting up nagios monitoring for my Firewall and noticed 3 users are logged in…

    Clearly not the case so I had a look into it - 2 of the sessions are 5 days old / Idle!!!

    How can I set the user time out on this for say 1 hour if they are idle?

    Thanks

    1 Reply Last reply Reply Quote 0
    • K
      kejianshi
      last edited by Jul 10, 2013, 2:17 AM

      I'd also like a good solution for rate limiting SSH on pfsense…

      1 Reply Last reply Reply Quote 0
      • J
        jimp Rebel Alliance Developer Netgate
        last edited by Jul 10, 2013, 12:38 PM

        Automatic logout depends on their shell. tcsh has autologout, bash has TMOUT, etc. Those are general solutions (i.e. not specific to pfSense)

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • D
          Deadringers
          last edited by Jul 10, 2013, 2:22 PM

          @jimp:

          Automatic logout depends on their shell. tcsh has autologout, bash has TMOUT, etc. Those are general solutions (i.e. not specific to pfSense)

          hmmm it seems these aren't ssh sessions but actually console sessions from the esxi environment…..

          anyway to disconnect them?

          1 Reply Last reply Reply Quote 0
          • J
            jimp Rebel Alliance Developer Netgate
            last edited by Jul 10, 2013, 2:25 PM

            The same, the shell logout would work the same on ssh or the console, since it's the shell tracking idle time.
            Or perhaps ESX has something to close out its own console sessions independent of the OS involved.

            Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

            Need help fast? Netgate Global Support!

            Do not Chat/PM for help!

            1 Reply Last reply Reply Quote 0
            • D
              Deadringers
              last edited by Jul 10, 2013, 2:40 PM

              sorry mate I'm not so good with free bsd…

              this is the output of w

              1 Reply Last reply Reply Quote 0
              • J
                jimp Rebel Alliance Developer Netgate
                last edited by Jul 10, 2013, 8:00 PM

                that's just the console sitting at the menu.

                Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                Need help fast? Netgate Global Support!

                Do not Chat/PM for help!

                1 Reply Last reply Reply Quote 0
                • D
                  Deadringers
                  last edited by Jul 10, 2013, 10:34 PM

                  Yea I thought it was - anyway to disconnect it?

                  it is a bit annoying as I have nagios setup and would like it to be reporting things like number of users logged in.

                  1 Reply Last reply Reply Quote 0
                  • J
                    jimp Rebel Alliance Developer Netgate
                    last edited by Jul 11, 2013, 1:14 AM

                    No if it logs out it goes right back to the menu. Unless you turn on password protection for the console. Even then the menu itself can't time out if someone logs in but doesn't log back out.

                    Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                    Need help fast? Netgate Global Support!

                    Do not Chat/PM for help!

                    1 Reply Last reply Reply Quote 0
                    • D
                      Deadringers
                      last edited by Jul 11, 2013, 1:39 AM

                      Thanks for that - I'll remember to log out from now on!

                      1 Reply Last reply Reply Quote 0
                      10 out of 10
                      • First post
                        10/10
                        Last post
                      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                        This community forum collects and processes your personal information.
                        consent.not_received