mirror of
https://github.com/webfactory/ssh-agent.git
synced 2026-04-03 08:39:06 +08:00
Remove "IdentitiesOnly"
This commit is contained in:
3
dist/index.js
vendored
3
dist/index.js
vendored
@@ -195,8 +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`
|
||||||
+ ` IdentityFile ${homeSsh}/${sha256}\n`
|
+ ` IdentityFile ${homeSsh}/${sha256}\n`;
|
||||||
+ ` IdentitiesOnly yes\n`;
|
|
||||||
|
|
||||||
fs.appendFileSync(`${homeSsh}/config`, sshConfig);
|
fs.appendFileSync(`${homeSsh}/config`, sshConfig);
|
||||||
|
|
||||||
|
|||||||
3
index.js
3
index.js
@@ -78,8 +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`
|
||||||
+ ` IdentityFile ${homeSsh}/${sha256}\n`
|
+ ` IdentityFile ${homeSsh}/${sha256}\n`;
|
||||||
+ ` IdentitiesOnly yes\n`;
|
|
||||||
|
|
||||||
fs.appendFileSync(`${homeSsh}/config`, sshConfig);
|
fs.appendFileSync(`${homeSsh}/config`, sshConfig);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user