修改私有仓库 ssh 配置

This commit is contained in:
whyour 2023-08-23 18:06:28 +08:00
parent 003defedcf
commit 4d5fa320ea

View File

@ -58,7 +58,7 @@ export default class SshKeyService {
private generateSingleSshConfig(alias: string, host: string, proxy?: string) { private generateSingleSshConfig(alias: string, host: string, proxy?: string) {
if (host === 'github.com') { 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 const proxyStr = proxy
? ` ProxyCommand nc -v -x ${proxy} %h %p 2>/dev/null\n` ? ` ProxyCommand nc -v -x ${proxy} %h %p 2>/dev/null\n`