Skip to content

Commit

Permalink
Add extra debug log for ssh-agent issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Nezteb committed Oct 30, 2023
1 parent 0903a7d commit 27e4d32
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -364,14 +364,15 @@ func connectOperator(user string, address string, sshKeyPath string) (*operator.
var sshAgentAuthMethod ssh.AuthMethod
sshAgentAuthMethod, initialSSHErr = sshAgentOnly()
if initialSSHErr == nil {

config := &ssh.ClientConfig{
User: user,
Auth: []ssh.AuthMethod{sshAgentAuthMethod},
HostKeyCallback: ssh.InsecureIgnoreHostKey(),
}

sshOperator, initialSSHErr = operator.NewSSHOperator(address, config)
} else {
return nil, nil, true, fmt.Errorf("unable to load key from ssh-agent: %w", initialSSHErr)
}
} else {
initialSSHErr = errors.New("ssh-agent unsupported on windows")
Expand Down

0 comments on commit 27e4d32

Please sign in to comment.