CreateProcessW Failed Error:2 Ssh_askpass: Posix_spawn: No Such File Or Directory Host Key Verification Failed, Jupyter Notebook On Remote Server


Answer :

According to the openssh docs, the ssh client, which will usually prompt for a password on the command line, will try to show a GUI dialog for the user to enter his password, if SSH_ASKPASS and DISPLAY environment variables are set.



On windows however, this is not properly supported yet, as the needed ssh_askpass binary is missing, and also because this seems still pretty X11 oriented.



Git for windows however seemed to get it working properly.



Of course, if you are just interested in entering your password on the command line, make sure the variables are unset. With the information you provided, it is however impossible to answer why the variable was set in the first place.



If you need the DISPLAY variable set because you want to use VcXsrc or another X-Server in Windows 10 the workaround is to add the host you want to connect to your known_hosts file.
This can be done by calling


ssh-keyscan -t rsa host.example.com | Out-File ~/.ssh/known_hosts -Append -Encoding ASCII;


Comments

Popular posts from this blog

Converting A String To Int In Groovy

"Cannot Create Cache Directory /home//.composer/cache/repo/https---packagist.org/, Or Directory Is Not Writable. Proceeding Without Cache"

Android How Can I Convert A String To A Editable