Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use actual ssh executable as it might not be ssh #40172

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions changelogs/fragments/ssh_use_exe.yml
@@ -0,0 +1,2 @@
- bugfix:
- Actually use the configured ssh executable for comparissions and not assume its 'ssh' always
2 changes: 1 addition & 1 deletion lib/ansible/plugins/connection/ssh.py
Expand Up @@ -663,7 +663,7 @@ def _bare_run(self, cmd, in_data, sudoable=True, checkrc=True):
# only when using ssh. Otherwise we can send initial data straightaway.

state = states.index('ready_to_send')
if b'ssh' in cmd and sudoable:
if to_bytes(self.get_option('ssh_executable')) in cmd and sudoable:
if self._play_context.prompt:
# We're requesting escalation with a password, so we have to
# wait for a password prompt.
Expand Down