본문 바로가기
Server

[Centos7] Session Timeout

by 뉴스 월백 2022. 1. 9.

 

[ 타임아웃 설정 확인 & 언셋]

$ env | grep TMOUT

$ unset TMOUT
-bash: unset: TMOUT: cannot unset: readonly variable

 

[ TMOUT 설정 ]

~/.bash_profile(또는 /etc/profile 또는 /etc/bashrc)의 하단에 아래 내용 추가

TMOUT=300
export TMOUT

→ 300초(=5분)동안 아무 동작이 없으면 자동 로그아웃됨

'Server' 카테고리의 다른 글

SSH 접속 유지시간 설정  (0) 2022.01.09

댓글