mirror of
https://github.com/webfactory/ssh-agent.git
synced 2026-04-01 15:49:07 +08:00
Use IdentitiesOnly=no
This commit is contained in:
1
.github/workflows/demo.yml
vendored
1
.github/workflows/demo.yml
vendored
@@ -58,6 +58,7 @@ jobs:
|
|||||||
${{ secrets.MPDUDE_TEST_1_DEPLOY_KEY }}
|
${{ secrets.MPDUDE_TEST_1_DEPLOY_KEY }}
|
||||||
${{ secrets.MPDUDE_TEST_2_DEPLOY_KEY }}
|
${{ secrets.MPDUDE_TEST_2_DEPLOY_KEY }}
|
||||||
- run: |
|
- run: |
|
||||||
|
ssh-add -l
|
||||||
cat ~/.ssh/config
|
cat ~/.ssh/config
|
||||||
ls -alh ~/.ssh
|
ls -alh ~/.ssh
|
||||||
git clone git@github.com:mpdude/test-2.git test-2-git
|
git clone git@github.com:mpdude/test-2.git test-2-git
|
||||||
|
|||||||
2
dist/index.js
vendored
2
dist/index.js
vendored
@@ -215,7 +215,7 @@ try {
|
|||||||
let sshConfig = `\nHost key-${keyNumber}\n`
|
let sshConfig = `\nHost key-${keyNumber}\n`
|
||||||
+ ` HostName github.com\n`
|
+ ` HostName github.com\n`
|
||||||
+ ` User git\n`
|
+ ` User git\n`
|
||||||
+ ` IdentitiesOnly yes\n`
|
+ ` IdentitiesOnly no\n`
|
||||||
+ ` IdentityFile ${keyFile}\n`;
|
+ ` IdentityFile ${keyFile}\n`;
|
||||||
|
|
||||||
fs.appendFileSync(`${homeSsh}/config`, sshConfig);
|
fs.appendFileSync(`${homeSsh}/config`, sshConfig);
|
||||||
|
|||||||
2
index.js
2
index.js
@@ -98,7 +98,7 @@ try {
|
|||||||
let sshConfig = `\nHost key-${keyNumber}\n`
|
let sshConfig = `\nHost key-${keyNumber}\n`
|
||||||
+ ` HostName github.com\n`
|
+ ` HostName github.com\n`
|
||||||
+ ` User git\n`
|
+ ` User git\n`
|
||||||
+ ` IdentitiesOnly yes\n`
|
+ ` IdentitiesOnly no\n`
|
||||||
+ ` IdentityFile ${keyFile}\n`;
|
+ ` IdentityFile ${keyFile}\n`;
|
||||||
|
|
||||||
fs.appendFileSync(`${homeSsh}/config`, sshConfig);
|
fs.appendFileSync(`${homeSsh}/config`, sshConfig);
|
||||||
|
|||||||
Reference in New Issue
Block a user