diff --git a/tabby-ssh/src/profiles.ts b/tabby-ssh/src/profiles.ts index 36693401..cea2dac1 100644 --- a/tabby-ssh/src/profiles.ts +++ b/tabby-ssh/src/profiles.ts @@ -20,7 +20,7 @@ export class SSHProfilesService extends QuickConnectProfileProvider auth: null, password: null, privateKeys: [], - keepaliveInterval: null, + keepaliveInterval: 5000, keepaliveCountMax: 10, readyTimeout: null, x11: false, diff --git a/tabby-ssh/src/session/ssh.ts b/tabby-ssh/src/session/ssh.ts index 6e023a87..5d75a30a 100644 --- a/tabby-ssh/src/session/ssh.ts +++ b/tabby-ssh/src/session/ssh.ts @@ -317,7 +317,7 @@ export class SSHSession { key: this.profile.options.algorithms?.[SSHAlgorithmType.HOSTKEY]?.filter(x => supportedAlgorithms[SSHAlgorithmType.HOSTKEY].includes(x)), compression: this.profile.options.algorithms?.[SSHAlgorithmType.COMPRESSION]?.filter(x => supportedAlgorithms[SSHAlgorithmType.COMPRESSION].includes(x)), }, - keepaliveIntervalSeconds: this.profile.options.keepaliveInterval ? Math.round(this.profile.options.keepaliveInterval / 1000) : undefined, + keepaliveIntervalSeconds: Math.round((this.profile.options.keepaliveInterval ?? 15000) / 1000), keepaliveCountMax: this.profile.options.keepaliveCountMax, connectionTimeoutSeconds: this.profile.options.readyTimeout ? Math.round(this.profile.options.readyTimeout / 1000) : undefined, },