Commit 833cf5a
authored
Fix SSH auth failures by enforcing IdentitiesOnly=yes (#4095)
## Changes
I faced this issue myself when trying the expermental ssh tunnel. since
I have couple of keys loaded into my ssh-agent
When a specific ssh key is provided via `-i` or IdentityFile option,the
SSH client still attempt to auth using all keys loaded in the ssh-agent
first. If too many keys are loaded, this causes the server to reject the
connection with "Too many authentication failures" before the correct
key is attempted.
## Why
<!-- Why are these changes needed? Provide the context that the reviewer
might be missing.
For example, were there any decisions behind the change that are not
reflected in the code itself? -->
## Tests
manually tested the change
<!-- If your PR needs to be included in the release notes for next
release,
add a separate entry in NEXT_CHANGELOG.md as part of your PR. -->1 parent 56fc0db commit 833cf5a
2 files changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
| 255 | + | |
255 | 256 | | |
256 | 257 | | |
257 | 258 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| 99 | + | |
99 | 100 | | |
100 | 101 | | |
101 | 102 | | |
| |||
0 commit comments