I try to start a mintty instance (running ssh) with a ruby script. When ssh asks for the password i would like to enter the password with the script. I've tried the following:
f = IO.popen("C:/.../cygwin/bin/mintty.exe /usr/bin/ssh user@host", 'r+')
f.puts "password\n"
f.close
When i execute this code ssh is started in a new mintty window. but the password
is not recognized. I am not even sure if it reaches the STDIN of this process. Any ideas?