How do I keep SSH connection alive on Windows 10? December 31, 2023 by Tarik In C:\Users\yourusername\.ssh make a new file named config, and add the lines below: Host * ServerAliveInterval 40