mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-03 22:25:57 +00:00
When using control masters also enable keep alives
Prevents the master connection from becoming stale. Use ssh protocol keep alives rather than tcp ones as tcp ones are often blocked by firewalls and also spoofable.
This commit is contained in:
parent
3282c8200d
commit
384c56f834
1 changed files with 3 additions and 0 deletions
|
|
@ -447,6 +447,9 @@ def connection_sharing_args(opts: SSHOptions, kitty_pid: int) -> List[str]:
|
|||
'-o', 'ControlMaster=auto',
|
||||
'-o', f'ControlPath={cp}',
|
||||
'-o', 'ControlPersist=yes',
|
||||
'-o', 'ServerAliveInterval=60',
|
||||
'-o', 'ServerAliveCountMax=5',
|
||||
'-o', 'TCPKeepAlive=no',
|
||||
]
|
||||
return ans
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue