Commit a6c7644
committed
fix: Check SSH_AUTH_SOCK file existence before agent connection in jump host auth
When SSH_AUTH_SOCK environment variable points to a non-existent socket
file, the jump host authentication would fail instead of falling back
to key file authentication. This fix adds a file existence check before
attempting to connect to the SSH agent, matching the behavior in
ssh/auth.rs.
This resolves an issue where cluster mode commands with jump_host
configuration would fail when SSH_AUTH_SOCK was set but the socket
file didn't exist.1 parent 524ce6b commit a6c7644
1 file changed
Lines changed: 18 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| 84 | + | |
| 85 | + | |
84 | 86 | | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
89 | 103 | | |
90 | 104 | | |
91 | 105 | | |
| |||
0 commit comments