mirror of
https://github.com/whyour/qinglong.git
synced 2025-07-08 04:16:07 +08:00
修改私有仓库 ssh 配置
This commit is contained in:
parent
003defedcf
commit
4d5fa320ea
|
@ -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`
|
||||||
|
|
Loading…
Reference in New Issue
Block a user