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

    How to set user time out on SSH sessions?

    General pfSense Questions
    3
    10
    2.3k
    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

      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

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

        1 Reply Last reply Reply Quote 0
        • jimpJ
          jimp Rebel Alliance Developer Netgate
          last edited by

          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

            @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
            • jimpJ
              jimp Rebel Alliance Developer Netgate
              last edited by

              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

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

                this is the output of w

                1 Reply Last reply Reply Quote 0
                • jimpJ
                  jimp Rebel Alliance Developer Netgate
                  last edited by

                  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

                    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
                    • jimpJ
                      jimp Rebel Alliance Developer Netgate
                      last edited by

                      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

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

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post
                        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.