ssh on cygwin (win10): read_passphrase: can't open /dev/tty:Inetd / xinetd isn't working under cygwin, why?ssh uses wrong home directory in CygwinCan't remove tunnel created by CygwinLoggin in ssh server: Permission denied, please try againCan't ssh as tty-less userssh-add under cygwinNeed help in configuring ssh in cygwinNon-interactive SSH connection fails - error: can't open /dev/tty: No such device or address; Host key verification failedManaging multiple servers behind a firewall with SSH reverse tunnelAWS :: Ubuntu instance consistently denying my private keys

Is my company merging branches wrong?

Germany rejected my entry to Schengen countries

How could the B-29 bomber back up under its own power?

Have I found a major security issue with login

Addressing an email

Why aren't satellites disintegrated even though they orbit earth within earth's Roche Limits?

How do you cope with rejection?

How come Arya Stark wasn't hurt by this in Game of Thrones Season 8 Episode 5?

Why does snapping your fingers activate the Infinity Gauntlet?

Richard's Favourite TV Programme

Why is python script running in background consuming 100 % CPU?

Why does string strummed with finger sound different from the one strummed with pick?

Does a windmilling propeller create more drag than a stopped propeller in an engine out scenario

Gambler's Fallacy Dice

Is it a good idea to teach algorithm courses using pseudocode instead of a real programming language?

"File type Zip archive (application/zip) is not supported" when opening a .pdf file

Latin words remembered from high school 50 years ago

Bash - Execute two commands and get exit status 1 if first fails

How does the "reverse syntax" in Middle English work?

Precedent for disabled Kings

How to convince boss to spend notice period on documentation instead of new projects

Character had a different name in the past. Which name should I use in a flashback?

Does the Aboleth have expertise in history and perception?

If you attack a Tarrasque while swallowed, what AC do you need to beat to hit it?



ssh on cygwin (win10): read_passphrase: can't open /dev/tty:


Inetd / xinetd isn't working under cygwin, why?ssh uses wrong home directory in CygwinCan't remove tunnel created by CygwinLoggin in ssh server: Permission denied, please try againCan't ssh as tty-less userssh-add under cygwinNeed help in configuring ssh in cygwinNon-interactive SSH connection fails - error: can't open /dev/tty: No such device or address; Host key verification failedManaging multiple servers behind a firewall with SSH reverse tunnelAWS :: Ubuntu instance consistently denying my private keys






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








7















Executing ssh on cygwin under windows 10 recently started failing, after many years of stable logins. The relevant output from ssh under a mintty from Xwindows:



% ssh -tt -vvv <user@host>
debug3: Failed to open file:C:\ProgramData\ssh/ssh_known_hosts error:2
debug3: Failed to open file:C:\ProgramData\ssh/ssh_known_hosts2 error:2
debug3: failed to open file:/dev/tty error:3
debug1: read_passphrase: can't open /dev/tty: No such file or directory
debug3: spawning /usr/X11R6/bin/ssh-askpass
CreateProcessW failed error:2
ssh_askpass: posix_spawn: No such file or directory
Host key verification failed.


The special file /dev/tty is there:



% ls -la /dev/tty
crw-rw-rw- 1 jpmattia None 5, 0 May 22 15:04 /dev/tty


I updated Cygwin to make sure all the binaries were the latest. Also windows updated itself earlier this week.



I'm a little baffled as to what might be going on. Clues gratefully accepted.










share|improve this question






























    7















    Executing ssh on cygwin under windows 10 recently started failing, after many years of stable logins. The relevant output from ssh under a mintty from Xwindows:



    % ssh -tt -vvv <user@host>
    debug3: Failed to open file:C:\ProgramData\ssh/ssh_known_hosts error:2
    debug3: Failed to open file:C:\ProgramData\ssh/ssh_known_hosts2 error:2
    debug3: failed to open file:/dev/tty error:3
    debug1: read_passphrase: can't open /dev/tty: No such file or directory
    debug3: spawning /usr/X11R6/bin/ssh-askpass
    CreateProcessW failed error:2
    ssh_askpass: posix_spawn: No such file or directory
    Host key verification failed.


    The special file /dev/tty is there:



    % ls -la /dev/tty
    crw-rw-rw- 1 jpmattia None 5, 0 May 22 15:04 /dev/tty


    I updated Cygwin to make sure all the binaries were the latest. Also windows updated itself earlier this week.



    I'm a little baffled as to what might be going on. Clues gratefully accepted.










    share|improve this question


























      7












      7








      7


      3






      Executing ssh on cygwin under windows 10 recently started failing, after many years of stable logins. The relevant output from ssh under a mintty from Xwindows:



      % ssh -tt -vvv <user@host>
      debug3: Failed to open file:C:\ProgramData\ssh/ssh_known_hosts error:2
      debug3: Failed to open file:C:\ProgramData\ssh/ssh_known_hosts2 error:2
      debug3: failed to open file:/dev/tty error:3
      debug1: read_passphrase: can't open /dev/tty: No such file or directory
      debug3: spawning /usr/X11R6/bin/ssh-askpass
      CreateProcessW failed error:2
      ssh_askpass: posix_spawn: No such file or directory
      Host key verification failed.


      The special file /dev/tty is there:



      % ls -la /dev/tty
      crw-rw-rw- 1 jpmattia None 5, 0 May 22 15:04 /dev/tty


      I updated Cygwin to make sure all the binaries were the latest. Also windows updated itself earlier this week.



      I'm a little baffled as to what might be going on. Clues gratefully accepted.










      share|improve this question
















      Executing ssh on cygwin under windows 10 recently started failing, after many years of stable logins. The relevant output from ssh under a mintty from Xwindows:



      % ssh -tt -vvv <user@host>
      debug3: Failed to open file:C:\ProgramData\ssh/ssh_known_hosts error:2
      debug3: Failed to open file:C:\ProgramData\ssh/ssh_known_hosts2 error:2
      debug3: failed to open file:/dev/tty error:3
      debug1: read_passphrase: can't open /dev/tty: No such file or directory
      debug3: spawning /usr/X11R6/bin/ssh-askpass
      CreateProcessW failed error:2
      ssh_askpass: posix_spawn: No such file or directory
      Host key verification failed.


      The special file /dev/tty is there:



      % ls -la /dev/tty
      crw-rw-rw- 1 jpmattia None 5, 0 May 22 15:04 /dev/tty


      I updated Cygwin to make sure all the binaries were the latest. Also windows updated itself earlier this week.



      I'm a little baffled as to what might be going on. Clues gratefully accepted.







      ssh cygwin






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited May 22 '18 at 19:47







      JP Mattia

















      asked May 22 '18 at 19:05









      JP MattiaJP Mattia

      11619




      11619




















          2 Answers
          2






          active

          oldest

          votes


















          8














          Documenting my solution in case anyone else has the problem: It appears that a Windows version of OpenSSH was introduced in the 2018 spring update, and it is being called instead of Cygwin's ssh. (See e.g. https://www.zdnet.com/article/openssh-arrives-in-windows-10-spring-update/)



          % which ssh
          /cygdrive/c/WINDOWS/System32/OpenSSH/ssh


          The reason for the sudden problem with ssh is that the cygwin PATH has /cygdrive/c/WINDOWS/System32 ahead of /usr/bin/. Or at least, mine did.



          So the issue is solved by calling /usr/bin/ssh explicitly. (Reordering the PATH is also a possible solution, but not for my environment.)






          share|improve this answer




















          • 1





            /usr/bin does not include ssh on my fresh installation of Cygwin :(

            – Christoph Geschwind
            Jul 8 '18 at 16:13











          • Good point: My cygwin ssh probably came in with the openssl package from the Cygwin installer.

            – JP Mattia
            Jul 9 '18 at 18:37






          • 1





            Cygwin has an openssh package that must be installed to get the ssh client and ssh client tools.

            – Jason Slobotski
            Aug 4 '18 at 2:20







          • 1





            As other comments have hinted at, you must also install openssh, as it is not installed by default.

            – timelmer
            Dec 5 '18 at 4:27











          • if you install openssh (by re-running cygwin installer and selecting the openssh package), "which ssh" command should switch to show "usr/bin/ssh" instead of "cygdrive/c/WINDOWS/..." (without any additional manual path reordering)

            – VeraKozya
            Feb 4 at 19:30


















          1














          If A fresh install of cygwin and having the sames issues, make sure to select openssh packages as part of the installation



          The ssh client come with windows 10 only can be used via cmd.exe not cygwin terminal






          share|improve this answer























            Your Answer








            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "2"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f913304%2fssh-on-cygwin-win10-read-passphrase-cant-open-dev-tty%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            8














            Documenting my solution in case anyone else has the problem: It appears that a Windows version of OpenSSH was introduced in the 2018 spring update, and it is being called instead of Cygwin's ssh. (See e.g. https://www.zdnet.com/article/openssh-arrives-in-windows-10-spring-update/)



            % which ssh
            /cygdrive/c/WINDOWS/System32/OpenSSH/ssh


            The reason for the sudden problem with ssh is that the cygwin PATH has /cygdrive/c/WINDOWS/System32 ahead of /usr/bin/. Or at least, mine did.



            So the issue is solved by calling /usr/bin/ssh explicitly. (Reordering the PATH is also a possible solution, but not for my environment.)






            share|improve this answer




















            • 1





              /usr/bin does not include ssh on my fresh installation of Cygwin :(

              – Christoph Geschwind
              Jul 8 '18 at 16:13











            • Good point: My cygwin ssh probably came in with the openssl package from the Cygwin installer.

              – JP Mattia
              Jul 9 '18 at 18:37






            • 1





              Cygwin has an openssh package that must be installed to get the ssh client and ssh client tools.

              – Jason Slobotski
              Aug 4 '18 at 2:20







            • 1





              As other comments have hinted at, you must also install openssh, as it is not installed by default.

              – timelmer
              Dec 5 '18 at 4:27











            • if you install openssh (by re-running cygwin installer and selecting the openssh package), "which ssh" command should switch to show "usr/bin/ssh" instead of "cygdrive/c/WINDOWS/..." (without any additional manual path reordering)

              – VeraKozya
              Feb 4 at 19:30















            8














            Documenting my solution in case anyone else has the problem: It appears that a Windows version of OpenSSH was introduced in the 2018 spring update, and it is being called instead of Cygwin's ssh. (See e.g. https://www.zdnet.com/article/openssh-arrives-in-windows-10-spring-update/)



            % which ssh
            /cygdrive/c/WINDOWS/System32/OpenSSH/ssh


            The reason for the sudden problem with ssh is that the cygwin PATH has /cygdrive/c/WINDOWS/System32 ahead of /usr/bin/. Or at least, mine did.



            So the issue is solved by calling /usr/bin/ssh explicitly. (Reordering the PATH is also a possible solution, but not for my environment.)






            share|improve this answer




















            • 1





              /usr/bin does not include ssh on my fresh installation of Cygwin :(

              – Christoph Geschwind
              Jul 8 '18 at 16:13











            • Good point: My cygwin ssh probably came in with the openssl package from the Cygwin installer.

              – JP Mattia
              Jul 9 '18 at 18:37






            • 1





              Cygwin has an openssh package that must be installed to get the ssh client and ssh client tools.

              – Jason Slobotski
              Aug 4 '18 at 2:20







            • 1





              As other comments have hinted at, you must also install openssh, as it is not installed by default.

              – timelmer
              Dec 5 '18 at 4:27











            • if you install openssh (by re-running cygwin installer and selecting the openssh package), "which ssh" command should switch to show "usr/bin/ssh" instead of "cygdrive/c/WINDOWS/..." (without any additional manual path reordering)

              – VeraKozya
              Feb 4 at 19:30













            8












            8








            8







            Documenting my solution in case anyone else has the problem: It appears that a Windows version of OpenSSH was introduced in the 2018 spring update, and it is being called instead of Cygwin's ssh. (See e.g. https://www.zdnet.com/article/openssh-arrives-in-windows-10-spring-update/)



            % which ssh
            /cygdrive/c/WINDOWS/System32/OpenSSH/ssh


            The reason for the sudden problem with ssh is that the cygwin PATH has /cygdrive/c/WINDOWS/System32 ahead of /usr/bin/. Or at least, mine did.



            So the issue is solved by calling /usr/bin/ssh explicitly. (Reordering the PATH is also a possible solution, but not for my environment.)






            share|improve this answer















            Documenting my solution in case anyone else has the problem: It appears that a Windows version of OpenSSH was introduced in the 2018 spring update, and it is being called instead of Cygwin's ssh. (See e.g. https://www.zdnet.com/article/openssh-arrives-in-windows-10-spring-update/)



            % which ssh
            /cygdrive/c/WINDOWS/System32/OpenSSH/ssh


            The reason for the sudden problem with ssh is that the cygwin PATH has /cygdrive/c/WINDOWS/System32 ahead of /usr/bin/. Or at least, mine did.



            So the issue is solved by calling /usr/bin/ssh explicitly. (Reordering the PATH is also a possible solution, but not for my environment.)







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited May 23 '18 at 16:48

























            answered May 23 '18 at 14:35









            JP MattiaJP Mattia

            11619




            11619







            • 1





              /usr/bin does not include ssh on my fresh installation of Cygwin :(

              – Christoph Geschwind
              Jul 8 '18 at 16:13











            • Good point: My cygwin ssh probably came in with the openssl package from the Cygwin installer.

              – JP Mattia
              Jul 9 '18 at 18:37






            • 1





              Cygwin has an openssh package that must be installed to get the ssh client and ssh client tools.

              – Jason Slobotski
              Aug 4 '18 at 2:20







            • 1





              As other comments have hinted at, you must also install openssh, as it is not installed by default.

              – timelmer
              Dec 5 '18 at 4:27











            • if you install openssh (by re-running cygwin installer and selecting the openssh package), "which ssh" command should switch to show "usr/bin/ssh" instead of "cygdrive/c/WINDOWS/..." (without any additional manual path reordering)

              – VeraKozya
              Feb 4 at 19:30












            • 1





              /usr/bin does not include ssh on my fresh installation of Cygwin :(

              – Christoph Geschwind
              Jul 8 '18 at 16:13











            • Good point: My cygwin ssh probably came in with the openssl package from the Cygwin installer.

              – JP Mattia
              Jul 9 '18 at 18:37






            • 1





              Cygwin has an openssh package that must be installed to get the ssh client and ssh client tools.

              – Jason Slobotski
              Aug 4 '18 at 2:20







            • 1





              As other comments have hinted at, you must also install openssh, as it is not installed by default.

              – timelmer
              Dec 5 '18 at 4:27











            • if you install openssh (by re-running cygwin installer and selecting the openssh package), "which ssh" command should switch to show "usr/bin/ssh" instead of "cygdrive/c/WINDOWS/..." (without any additional manual path reordering)

              – VeraKozya
              Feb 4 at 19:30







            1




            1





            /usr/bin does not include ssh on my fresh installation of Cygwin :(

            – Christoph Geschwind
            Jul 8 '18 at 16:13





            /usr/bin does not include ssh on my fresh installation of Cygwin :(

            – Christoph Geschwind
            Jul 8 '18 at 16:13













            Good point: My cygwin ssh probably came in with the openssl package from the Cygwin installer.

            – JP Mattia
            Jul 9 '18 at 18:37





            Good point: My cygwin ssh probably came in with the openssl package from the Cygwin installer.

            – JP Mattia
            Jul 9 '18 at 18:37




            1




            1





            Cygwin has an openssh package that must be installed to get the ssh client and ssh client tools.

            – Jason Slobotski
            Aug 4 '18 at 2:20






            Cygwin has an openssh package that must be installed to get the ssh client and ssh client tools.

            – Jason Slobotski
            Aug 4 '18 at 2:20





            1




            1





            As other comments have hinted at, you must also install openssh, as it is not installed by default.

            – timelmer
            Dec 5 '18 at 4:27





            As other comments have hinted at, you must also install openssh, as it is not installed by default.

            – timelmer
            Dec 5 '18 at 4:27













            if you install openssh (by re-running cygwin installer and selecting the openssh package), "which ssh" command should switch to show "usr/bin/ssh" instead of "cygdrive/c/WINDOWS/..." (without any additional manual path reordering)

            – VeraKozya
            Feb 4 at 19:30





            if you install openssh (by re-running cygwin installer and selecting the openssh package), "which ssh" command should switch to show "usr/bin/ssh" instead of "cygdrive/c/WINDOWS/..." (without any additional manual path reordering)

            – VeraKozya
            Feb 4 at 19:30













            1














            If A fresh install of cygwin and having the sames issues, make sure to select openssh packages as part of the installation



            The ssh client come with windows 10 only can be used via cmd.exe not cygwin terminal






            share|improve this answer



























              1














              If A fresh install of cygwin and having the sames issues, make sure to select openssh packages as part of the installation



              The ssh client come with windows 10 only can be used via cmd.exe not cygwin terminal






              share|improve this answer

























                1












                1








                1







                If A fresh install of cygwin and having the sames issues, make sure to select openssh packages as part of the installation



                The ssh client come with windows 10 only can be used via cmd.exe not cygwin terminal






                share|improve this answer













                If A fresh install of cygwin and having the sames issues, make sure to select openssh packages as part of the installation



                The ssh client come with windows 10 only can be used via cmd.exe not cygwin terminal







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Jul 25 '18 at 7:51









                skelatorskelator

                112




                112



























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Server Fault!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f913304%2fssh-on-cygwin-win10-read-passphrase-cant-open-dev-tty%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Wikipedia:Vital articles Мазмуну Biography - Өмүр баян Philosophy and psychology - Философия жана психология Religion - Дин Social sciences - Коомдук илимдер Language and literature - Тил жана адабият Science - Илим Technology - Технология Arts and recreation - Искусство жана эс алуу History and geography - Тарых жана география Навигация менюсу

                    Bruxelas-Capital Índice Historia | Composición | Situación lingüística | Clima | Cidades irmandadas | Notas | Véxase tamén | Menú de navegacióneO uso das linguas en Bruxelas e a situación do neerlandés"Rexión de Bruxelas Capital"o orixinalSitio da rexiónPáxina de Bruselas no sitio da Oficina de Promoción Turística de Valonia e BruxelasMapa Interactivo da Rexión de Bruxelas-CapitaleeWorldCat332144929079854441105155190212ID28008674080552-90000 0001 0666 3698n94104302ID540940339365017018237

                    What should I write in an apology letter, since I have decided not to join a company after accepting an offer letterShould I keep looking after accepting a job offer?What should I do when I've been verbally told I would get an offer letter, but still haven't gotten one after 4 weeks?Do I accept an offer from a company that I am not likely to join?New job hasn't confirmed starting date and I want to give current employer as much notice as possibleHow should I address my manager in my resignation letter?HR delayed background verification, now jobless as resignedNo email communication after accepting a formal written offer. How should I phrase the call?What should I do if after receiving a verbal offer letter I am informed that my written job offer is put on hold due to some internal issues?Should I inform the current employer that I am about to resign within 1-2 weeks since I have signed the offer letter and waiting for visa?What company will do, if I send their offer letter to another company