Skip to content

Commit 70a215a

Browse files
authored
Merge pull request #23 from LeSuisse/issue-mode-explicit-identity-agent-path
Explicitly set the IdentityAgent path when using the `issue` mode
2 parents aad7222 + e98397c commit 70a215a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ func processCommand() int {
111111
// override default ssh-agent socket
112112
os.Setenv("SSH_AUTH_SOCK", agent.SocketFile())
113113
log.Debugf("set SSH_AUTH_SOCK to %q\n", agent.SocketFile())
114+
sshClient.PrependArgs([]string{"-o", "IdentityAgent=SSH_AUTH_SOCK"})
114115

115116
case "sign":
116117
signedKey, err := vaultClient.SignKey(sshClient.User)

0 commit comments

Comments
 (0)