mirror of
https://github.com/webfactory/ssh-agent.git
synced 2026-04-04 00:59:06 +08:00
Explicitly disable IdentitiesOnly
This commit is contained in:
1
dist/index.js
vendored
1
dist/index.js
vendored
@@ -195,6 +195,7 @@ try {
|
|||||||
let sshConfig = `\nHost ${sha256}\n`
|
let sshConfig = `\nHost ${sha256}\n`
|
||||||
+ ` HostName github.com\n`
|
+ ` HostName github.com\n`
|
||||||
+ ` User git\n`
|
+ ` User git\n`
|
||||||
|
+ ` IdentitiesOnly no\n`
|
||||||
+ ` IdentityFile ${homeSsh}/${sha256}\n`;
|
+ ` IdentityFile ${homeSsh}/${sha256}\n`;
|
||||||
|
|
||||||
fs.appendFileSync(`${homeSsh}/config`, sshConfig);
|
fs.appendFileSync(`${homeSsh}/config`, sshConfig);
|
||||||
|
|||||||
1
index.js
1
index.js
@@ -78,6 +78,7 @@ try {
|
|||||||
let sshConfig = `\nHost ${sha256}\n`
|
let sshConfig = `\nHost ${sha256}\n`
|
||||||
+ ` HostName github.com\n`
|
+ ` HostName github.com\n`
|
||||||
+ ` User git\n`
|
+ ` User git\n`
|
||||||
|
+ ` IdentitiesOnly no\n`
|
||||||
+ ` IdentityFile ${homeSsh}/${sha256}\n`;
|
+ ` IdentityFile ${homeSsh}/${sha256}\n`;
|
||||||
|
|
||||||
fs.appendFileSync(`${homeSsh}/config`, sshConfig);
|
fs.appendFileSync(`${homeSsh}/config`, sshConfig);
|
||||||
|
|||||||
Reference in New Issue
Block a user