1
0
mirror of https://github.com/rancher/rke.git synced 2025-06-22 13:37:06 +00:00

fix ssh agent auth with bastion host

This commit is contained in:
fpicot 2019-09-26 10:06:40 -04:00 committed by Alena Prokharchyk
parent 0e5959a980
commit e9327b51f5

View File

@ -232,7 +232,7 @@ func BastionHostWrapTransport(bastionHost v3.BastionHost) (transport.WrapperFunc
useSSHAgentAuth: bastionHost.SSHAgentAuth, useSSHAgentAuth: bastionHost.SSHAgentAuth,
} }
if bastionDialer.sshKeyString == "" { if bastionDialer.sshKeyString == "" && !bastionDialer.useSSHAgentAuth {
var err error var err error
bastionDialer.sshKeyString, err = privateKeyPath(bastionHost.SSHKeyPath) bastionDialer.sshKeyString, err = privateKeyPath(bastionHost.SSHKeyPath)
if err != nil { if err != nil {