mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Salt SSH appends IdentityFile=agent-forwarding
When you set `ssh_priv: agent-forwarding` in master.conf (or, untested, `priv: agent-forwarding` in roster), SSH agent authentication is supposed to be used. However, Salt SSH launches with `ssh -o IdentityFile=agent-forwarding`. This file/dir can't be found (doh) and the connection fails.
This commit is contained in:
parent
4590494b50
commit
8b53571c70
1 changed files with 1 additions and 1 deletions
|
@ -138,7 +138,7 @@ class Shell(object):
|
|||
options.append('UserKnownHostsFile={0}'.format(known_hosts))
|
||||
if self.port:
|
||||
options.append('Port={0}'.format(self.port))
|
||||
if self.priv:
|
||||
if self.priv and self.priv != 'agent-forwarding':
|
||||
options.append('IdentityFile={0}'.format(self.priv))
|
||||
if self.user:
|
||||
options.append('User={0}'.format(self.user))
|
||||
|
|
Loading…
Add table
Reference in a new issue