Re: automatic logout
- From: Tom Hansen <tomh@xxxxxxx>
- Date: Wed, 26 Jul 2006 16:49:55 -0500
Maybe you could try something like this in /etc/profile:
if (grep sshd /proc/$PPID/cmdline >/dev/null 2>&1); then
export TMOUT=whatever
fi
Bill Tangren wrote:
I am required to configure my servers so that anyone who logs in via ssh or sftp
will be logged out after 30 minutes of inactivity. I have looked through the
openssh documentation and have seen nothing on how do to this (ClientAliveInterval doesn't seem to do this). Googling didn't help much either. I found an environment variable for the bash and ksh shells that I can put in /etc/profile:
# export TMOUT=<timeout_in_seconds>
and this works, but it unceremoniously dumps the connection. And, if you are
logged in to the gui at the console, and you have terminal windows open (not
using ssh) it will close those too. Again with no warning.
Does anyone have any suggestions?
Bill Tangren
--
Tom Hansen
Senior Information Processing Consultant
Great Lakes WATER Institute
tomh@xxxxxxx
www.glwi.uwm.edu
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
- References:
- automatic logout
- From: Bill Tangren
- automatic logout
- Prev by Date: Re: automatic logout
- Next by Date: open files: cannot modify limit: (ulimit -n) error
- Previous by thread: Re: automatic logout
- Next by thread: RE: automatic logout
- Index(es):
Relevant Pages
- Re: In the market for a secure replacement for FTPD
... SFTP isn't ... > realy ftp, but rather a frontend to ssh, accepting ftp-like
commands. ... > autentication and allows for encription of a connection as well.
... (comp.os.linux.misc) - Re: Easier alternative to scp?
... Other alternative is to use sftp. ... Login once and keep the connection
open until you finish your work. ... you want to reuse the ssh connection for sftp
also just do a "ssh port" ... (comp.security.ssh) - Re: WS_FTP
... It uses a channel inside of an ssh connection to talk to the sftp service ...
debug1: Applying options for xx.xx.xx.39 ... (SSH) - Re: restrict ssh access
... running passwd so they can change their default password. ... When an ssh
connection is made, ... As soon as the password is changed, the ssh connection was
closed: ... Should make for some fascinating experiences with sftp. ... (freebsd-questions) - Re: Batch job to perform sftp transfer
... It relies on copying datasets to temporary HFS files ... I used /bin/cat with
ssh so that I could transfer the data and pipe it to ... The IBM version of sftp
doesn't support datasets, ... Batch job to perform sftp transfer ... (bit.listserv.ibm-main)