From 4d5fa320eae00ec68facf3b933c474809798671b Mon Sep 17 00:00:00 2001 From: whyour Date: Wed, 23 Aug 2023 18:06:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=A7=81=E6=9C=89=E4=BB=93?= =?UTF-8?q?=E5=BA=93=20ssh=20=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- back/services/sshKey.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/back/services/sshKey.ts b/back/services/sshKey.ts index feb72693..0dee5ad3 100644 --- a/back/services/sshKey.ts +++ b/back/services/sshKey.ts @@ -58,7 +58,7 @@ export default class SshKeyService { private generateSingleSshConfig(alias: string, host: string, proxy?: string) { if (host === 'github.com') { - host = `ssh.github.com\n Port 443\n HostkeyAlgorithms +ssh-rsa\n PubkeyAcceptedAlgorithms +ssh-rsa`; + host = `ssh.github.com\n Port 443\n HostkeyAlgorithms +ssh-rsa`; } const proxyStr = proxy ? ` ProxyCommand nc -v -x ${proxy} %h %p 2>/dev/null\n`