Keep SSH session alive without sudo

vim ~/.ssh/config

# this example keep the session alive for 60sec x 480 = 8hours
ServerAliveInterval 60 #seconds
ServerAliveCountMax 480 #times of keep-alive signals to send

Leave a Reply