RE: automatic logout



I believe there is a pam option for this... You may want to look into that..


-----Original Message-----
From: redhat-list-bounces@xxxxxxxxxx on behalf of Bill Tangren
Sent: Wed 7/26/2006 1:23 PM
To: General Red Hat Linux discussion list
Subject: automatic logout

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




--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list


********************************************
This message is intended only for the use of the Addressee and
may contain information that is PRIVILEGED and CONFIDENTIAL.

If you are not the intended recipient, you are hereby notified
that any dissemination of this communication is strictly prohibited.

If you have received this communication in error, please erase
all copies of the message and its attachments and notify us
immediately.

Thank you.
********************************************
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

Relevant Pages

  • ssh
    ... I have small problem at our site, I have started ssh on our FTP server,Now ... ssh he can do ssh login as well as sftp but I want only sftp, ... you are not the intended recipient, please notify the sender at Wipro or ...
    (SunManagers)
  • 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)
  • Re: secure file transfer FROM z/OS
    ... FTPS. ... SSH SFTP. ... This is supported by z/OS Ported Tools - OpenSSH. ... better native z/OS features than Ported Tools SSH ...
    (bit.listserv.ibm-main)
  • Re: SPAM sudden increase
    ... up ssh for some sftp session and saw something odd... ... Dude was on a tech call with f-secure and the tech asked, "So, are you ... To which the dude replied, "Yeah, I'm ...
    (alt.2600)
  • Re: SFTP is not working
    ... When I try to use sftp or scp2, I get a message like this: ... sftp and scp2 both actually work by running ssh in a subprocess, ... The reason the shell startup files are relevant at all, ...
    (comp.security.ssh)