Developing

Putty Server Connection Timed Out (Inactive) 자주되는 현상 해결방법 본문

Trouble Shooting

Putty Server Connection Timed Out (Inactive) 자주되는 현상 해결방법

DEV_BLOG 2023. 7. 6. 22:02

 

[상황] : Bastion Server를 띄운 Putty에서 자꾸 (Inactive) 상태가 되면서 다시 서버를 켜야하는 번거로움이 발생하는 경우를 해결하는 방법

 

 

서버 보안정책 설정을 건드리지 않고 Putty에서 옵션을 지정해 해결할 수 있는 방법이 있어 포스팅해본다.

 

 

 

Connection > Seceonds between keepalives (0 to turn off) 의 옵션을 0에서 120으로 변경(초단위)

Session > Save 하여 keepalives 설정 저장

 

 

원리는 SSH Session이 죽지 않도록 지정한 시간 간격으로 Null Packet을 지속적으로 보내주어서 Connection이 끊기지 않도록 한다.

 

 

 

 

 

Reference

 

https://orahow.com/keep-putty-ssh-connection-alive/