You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think it might be related to #1206
We are trying to use sshd with default shell (DefaultShell registry setting) pointing at Cygwin bash. It seems to work fine interactively, but ansible running on Ubuntu is having issues with quoting. Following fails when run agains Windows box running Win32-OpenSSH, but works fine in OpenSSH that ships with Cygwin itself.
Actual result on Win32-OpenSSH:
$ ssh user@host '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /tmp/ansible-tmp-1531390575.01-172404816163862 `" && echo ansible-tmp-1531390575.01-172404816163862="` echo /tmp/ansible-tmp-1531390575.01-172404816163862 `" ) && sleep 0'"'"''
You are about to ssh to Windows box (tadam!)
Please make sure that you use your app account to login!
echo: -c: line 0: unexpected EOF while looking for matching `''
echo: -c: line 1: syntax error: unexpected end of file
Expected results (the one observed when talking to Cygwin OpenSSH on another box):
I believe if we can accurately implement execve() on Windows, this should go away. @penguin359 proposed a solution in #1082, but I haven't gotten far yet to think through and validate it.
"OpenSSH for Windows" version
7.7.1.0
Server OperatingSystem
Windows Server 2012 R2 Standard
Client OperatingSystem
I think it might be related to #1206
We are trying to use sshd with default shell (DefaultShell registry setting) pointing at Cygwin bash. It seems to work fine interactively, but ansible running on Ubuntu is having issues with quoting. Following fails when run agains Windows box running Win32-OpenSSH, but works fine in OpenSSH that ships with Cygwin itself.
Actual result on Win32-OpenSSH:
Expected results (the one observed when talking to Cygwin OpenSSH on another box):
You can find code responsible for generating this command here (as far as I can tell): https://github.com/ansible/ansible/blob/06f73ad578d840c7ea5875b7cd4ffd08e2d9d0e8/lib/ansible/plugins/shell/__init__.py#L152-L163
We would like to use Ansible w/ OpenSSH/ Cygwin but that issue is blocking us right now.
The text was updated successfully, but these errors were encountered: