From a764af9c9206dd04b3ce8f9c3662552c9014e96f Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 20 Nov 2025 16:15:21 +0000 Subject: [PATCH] Use tilde (~) prefix for global SSH config to ensure it loads last Co-authored-by: whyour <22700758+whyour@users.noreply.github.com> --- back/services/sshKey.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/back/services/sshKey.ts b/back/services/sshKey.ts index 21215a72..99465109 100644 --- a/back/services/sshKey.ts +++ b/back/services/sshKey.ts @@ -133,15 +133,15 @@ export default class SshKeyService { } public async addGlobalSSHKey(key: string, alias: string): Promise { - await this.generatePrivateKeyFile(`zzz_global_${alias}`, key); + await this.generatePrivateKeyFile(`~global_${alias}`, key); // Create a global SSH config entry that matches all hosts // This allows the key to be used for any Git repository - await this.generateGlobalSshConfig(`zzz_global_${alias}`); + await this.generateGlobalSshConfig(`~global_${alias}`); } public async removeGlobalSSHKey(alias: string): Promise { - await this.removePrivateKeyFile(`zzz_global_${alias}`); - await this.removeSshConfig(`zzz_global_${alias}`); + await this.removePrivateKeyFile(`~global_${alias}`); + await this.removeSshConfig(`~global_${alias}`); } private async generateGlobalSshConfig(alias: string) {