개발모음집

ssh connection time increase 본문

Server

ssh connection time increase

void 2019. 9. 13. 10:00

서버 커넥션 계속 끊기는 문제로 커넥션 연결을 길게 하고 싶었다.

1. $ nano /etc/ssh/sshd_config

ClientAliveInterval 600 
ClientAliveCountMax 3 

//(600 초 x 3) = 30분간 세션 유지

출처: https://daemonitblog.tistory.com/7 [데몬아이티]

2. $ service ssh restart