Server2 [Centos7] Session Timeout [ 타임아웃 설정 확인 & 언셋] $ 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분)동안 아무 동작이 없으면 자동 로그아웃됨 2022. 1. 9. SSH 접속 유지시간 설정 [ sshd_config 설정 확인]$ cat /etc/ssh/sshd_config | grep Client#ClientAliveInterval 0#ClientAliveCountMax 3→ ClientAliveInterval: 클라이언트 살아있는지 확인하는 간격→ ClientAliveCountMax: 클라이언트 응답 없어도 접속 유지하는 횟수→ 예를 들어 ClientAliveInterval=15, ClientAliveCountMax=3 이면 45초 후 접속 끊김 [ sshd_config 설정 변경 & 재시작]$ vi /etc/ssh/sshd_config ClientAliveInterval 600 ClientAliveCountMax 6→ 1시간 설정$ service sshd restart$ cat /et.. 2022. 1. 9. 이전 1 다음