diff --git a/tabby-ssh/src/profiles.ts b/tabby-ssh/src/profiles.ts index f1fa70cd..962d164c 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: 5000, + keepaliveInterval: null, keepaliveCountMax: 10, readyTimeout: null, x11: false, diff --git a/tabby-ssh/src/session/ssh.ts b/tabby-ssh/src/session/ssh.ts index 5d75a30a..6e023a87 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: Math.round((this.profile.options.keepaliveInterval ?? 15000) / 1000), + keepaliveIntervalSeconds: this.profile.options.keepaliveInterval ? Math.round(this.profile.options.keepaliveInterval / 1000) : undefined, keepaliveCountMax: this.profile.options.keepaliveCountMax, connectionTimeoutSeconds: this.profile.options.readyTimeout ? Math.round(this.profile.options.readyTimeout / 1000) : undefined, },