Re: 5.4 SSH Timeout help

From: Will Maier (willmaier_at_ml1.net)
Date: 09/12/05

  • Next message: Charles Swiger: "Re: Which CPUTYPE?"
    Date: Mon, 12 Sep 2005 13:54:17 -0500
    To: freebsd-questions@freebsd.org
    
    

    On Mon, Sep 12, 2005 at 11:24:19AM -0700, Sean Murphy wrote:
    > I SSH into the server with no problem and I'm able to do work
    > however when I walk away from my desk SSH closes the session. It
    > seems the timeout is 5 or 10 min how can I change this setting for
    > all of our users?

    What shell are the users using? If they're using 'tcsh' or certain
    other shells, they might be running up against the shell's
    autologout option. See the man page for tcsh (1):
        
    | The first word is the number of minutes of inactivity before
    | automatic logout. The optional second word is the number of minutes
    | of inactivity before automatic locking. When the shell
    | automatically logs out, it prints `auto-logout', sets the variable
    | logout to `automatic' and exits. When the shell automatically
    | locks, the user is required to enter his password to continue
    | working. Five incorrect attempts result in automatic logout. Set to
    | `60' (automatic logout after 60 minutes, and no locking) by default
    | in login and superuser shells, but not if the shell thinks it is
    | running under a window system (i.e., the DISPLAY environment
    | variable is set), the tty is a pseudo-tty (pty) or the shell was
    | not so compiled (see the version shell variable). See also the
    | afsuser and logout shell variables.

    -- 
    o--------------------------{ Will Maier }--------------------------o
    | jabber:..wcmaier@jabber.ccc.de | email:..........wcmaier@ml1.net |
    | \.........wcmaier@cae.wisc.edu | \..........wcmaier@cae.wisc.edu |
    *------------------[ BSD Unix: Live Free or Die ]------------------*
    _______________________________________________
    freebsd-questions@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
    

  • Next message: Charles Swiger: "Re: Which CPUTYPE?"

    Relevant Pages

    • Re: 5.4 SSH Timeout help
      ... >>however when I walk away from my desk SSH closes the session. ... > What shell are the users using? ... Five incorrect attempts result in automatic logout. ... There was no timeout option with the shell I was using (the bourne shell ...
      (freebsd-questions)
    • Re: Multiple field substitution in one shot?
      ... > I was wondering if there is the capability in either sed, awk, or bourne ... whatever you want into a shell variable named "var", ... with the shell variables contents: ... > It removes the newline characters and $var becomes one continuous record ...
      (comp.unix.shell)
    • Re: who exported this variable?
      ... > In an UNIX Shell..,we know that there are shell variables exported,but ... > lot of shell variables trolling on the screen...but now the question is ... commands in the other scripts that execute them. ... is the name of that script, and the following at the end: ...
      (comp.unix.shell)
    • Re: tcsh startup tasks
      ... > That's not true for the Bourne shell (sh on Solaris and some old ... > systems) where they are separate unless you've specifically ... My understanding is that shell variables are not exported to the ... distinction between shell variables and environment variables. ...
      (comp.unix.shell)
    • Re: how to update shell vars within awk script
      ... What i want is to check disk space and, update the var in the shell ... so that if a mounted disk is nearly used up, ... You shouldn't expect to be able to update a shell variable within awk any more than you would within C. ... The syntax you're using above to reference the value of shell variables from within awk is error-prone and should be avoided. ...
      (comp.unix.shell)