Hello,
I've been using sshpass and cygwin for a while, but it stopped working after the last upgrade. They did some change related to TTY that may be the cause of the problem, but I'm not sure.
I add some logging to the program and I found that the pselect call fails and set the errno to Interrupted system call I don't kwow why though.
If I ran it from xterm running in X11 under windows, I have the following error (pselect fails as well)
ssh_askpass: exec(/usr/sbin/ssh-askpass): No such file or directory
ssh_askpass: exec(/usr/sbin/ssh-askpass): No such file or directory
ssh_askpass: exec(/usr/sbin/ssh-askpass): No such file or directory
Permission denied (publickey,keyboard-interactive).
ERROR: Interrupted system call
On another computer, where cygwin has not been updated, ssh-askpass is not installed and it works fine.
Let me know if you have any other idea to figure out the problem, i'd be happy to test.
Thanks,
Sylvain
It works fine for me.
Please note that cygwin's sshpass won't work with Windows's native ssh. You have to use cygwin's ssh.