Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I keep SSH connection alive on Windows 10?

I've added the OpenSSH client (Beta) feature on Windows 10 so I can call it by running

ssh

on the command line.

However the terminal windows (and thus the connection) freezes when inactive for too long. I know I would solve this on Linux by editing the ~/.ssh/config file. Is there an equivalent on Windows?

like image 952
SlowerPhoton Avatar asked Mar 26 '18 17:03

SlowerPhoton


1 Answers

in C:\Users\yourusername\.ssh make a newfile named config,and add lines below:

Host *
    ServerAliveInterval 40
like image 191
傅继晗 Avatar answered Sep 21 '22 15:09

傅继晗