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:
parent
0e5959a980
commit
e9327b51f5
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user