“ssh_exchange_identification: read: Connection reset by peer” error trying to connect to OpenSSH on Windows machine Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) Come Celebrate our 10 Year Anniversary!How do you manage ssh keys to add a second user?How do I connect to a server behind an socks5 proxy through SSH on mac/linux?SSH accepts publickey authetication but won't connect with an identify file?OpenSSH disable ControlMaster for given hostnameCan't SSH into Amazon EC2Is it possible to ssh or rsync into a system whose file-system has remounted itself read-only?AWS :: Ubuntu instance consistently denying my private keysHow to properly use rsync Push with SSH on local macOS to remote Debian

New Order #5: where Fibonacci and Beatty meet at Wythoff

What items from the Roman-age tech-level could be used to deter all creatures from entering a small area?

Can I add database to AWS RDS MySQL without creating new instance?

When is phishing education going too far?

Working around an AWS network ACL rule limit

Can a non-EU citizen traveling with me come with me through the EU passport line?

What can I do if my MacBook isn’t charging but already ran out?

How do you clear the ApexPages.getMessages() collection in a test?

Replacing HDD with SSD; what about non-APFS/APFS?

Blender game recording at the wrong time

Was credit for the black hole image misattributed?

Do working physicists consider Newtonian mechanics to be "falsified"?

Can a zero nonce be safely used with AES-GCM if the key is random and never used again?

Fishing simulator

Need a suitable toxic chemical for a murder plot in my novel

Why use gamma over alpha radiation?

Cold is to Refrigerator as warm is to?

Slither Like a Snake

Why does tar appear to skip file contents when output file is /dev/null?

Limit for e and 1/e

How do I keep my slimes from escaping their pens?

Complexity of many constant time steps with occasional logarithmic steps

Who can trigger ship-wide alerts in Star Trek?

Simulating Exploding Dice



“ssh_exchange_identification: read: Connection reset by peer” error trying to connect to OpenSSH on Windows machine



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
Come Celebrate our 10 Year Anniversary!How do you manage ssh keys to add a second user?How do I connect to a server behind an socks5 proxy through SSH on mac/linux?SSH accepts publickey authetication but won't connect with an identify file?OpenSSH disable ControlMaster for given hostnameCan't SSH into Amazon EC2Is it possible to ssh or rsync into a system whose file-system has remounted itself read-only?AWS :: Ubuntu instance consistently denying my private keysHow to properly use rsync Push with SSH on local macOS to remote Debian



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








0















I'm trying to set up an SSH server on my Windows2k8 server. I used the instructions found here. Here's the verbose output:



steves-air:~ steve$ ssh steve@mydomain.ca -v
OpenSSH_7.9p1, LibreSSL 2.7.3
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 48: Applying options for *
debug1: Connecting to mydomain.ca port 22.
debug1: Connection established.
debug1: identity file /Users/steve/.ssh/id_rsa type -1
debug1: identity file /Users/steve/.ssh/id_rsa-cert type -1
debug1: identity file /Users/steve/.ssh/id_dsa type -1
debug1: identity file /Users/steve/.ssh/id_dsa-cert type -1
debug1: identity file /Users/steve/.ssh/id_ecdsa type -1
debug1: identity file /Users/steve/.ssh/id_ecdsa-cert type -1
debug1: identity file /Users/steve/.ssh/id_ed25519 type -1
debug1: identity file /Users/steve/.ssh/id_ed25519-cert type -1
debug1: identity file /Users/steve/.ssh/id_xmss type -1
debug1: identity file /Users/steve/.ssh/id_xmss-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_7.9
ssh_exchange_identification: read: Connection reset by peer


So far I'm able to get a network connection, indicating that it's not a firewall problem. As a test, I also tried running sshd under cygwin. I was able to get a terminal prompt with that. I'd prefer to use OpenSSH though, since I want to get it working with powershell.



I tried setting the logging level to DEBUG, but i'm not getting any other troubleshooting info from there.



I'd appreciate any guidance.



*edit: Just realized i should mention. I tried putting a hosts.allow file in the %programdata%/ssh directory. That didn't help and I'm not sure if its applicable in this case.



*edit2: I tried running sshd in interactive mode per the troubleshooting steps from here. Windows came up with an appcrash when i tried to connect. Here's the output before it crashed:



PS C:Program FilesOpenSSH> .sshd.exe -d
debug1: sshd version OpenSSH_for_Windows_7.9, LibreSSL 2.6.5
debug1: private host key #0: ssh-rsa SHA256:XXX
debug1: private host key #1: ecdsa-sha2-nistp256 SHA256:XXX
debug1: private host key #2: ssh-ed25519 SHA256:XXX
debug1: rexec_argv[0]='C:\Program Files\OpenSSH\sshd.exe'
debug1: rexec_argv[1]='-d'
debug1: Bind to port 22 on ::.
Server listening on :: port 22.
debug1: Bind to port 22 on 0.0.0.0.
Server listening on 0.0.0.0 port 22.
debug1: Server will not fork when running in debugging mode.
Connection from 192.168.1.39 port 51410 on 192.168.1.3 port 22
debug1: Client protocol version 2.0; client software version
OpenSSH_7.9
debug1: match: OpenSSH_7.9 pat OpenSSH* compat 0x04000000
debug1: Local version string SSH-2.0-OpenSSH_for_Windows_7.9
debug1: monitor_read_log: child log fd closed
debug1: do_cleanup
debug1: Killing privsep child 10684









share|improve this question






























    0















    I'm trying to set up an SSH server on my Windows2k8 server. I used the instructions found here. Here's the verbose output:



    steves-air:~ steve$ ssh steve@mydomain.ca -v
    OpenSSH_7.9p1, LibreSSL 2.7.3
    debug1: Reading configuration data /etc/ssh/ssh_config
    debug1: /etc/ssh/ssh_config line 48: Applying options for *
    debug1: Connecting to mydomain.ca port 22.
    debug1: Connection established.
    debug1: identity file /Users/steve/.ssh/id_rsa type -1
    debug1: identity file /Users/steve/.ssh/id_rsa-cert type -1
    debug1: identity file /Users/steve/.ssh/id_dsa type -1
    debug1: identity file /Users/steve/.ssh/id_dsa-cert type -1
    debug1: identity file /Users/steve/.ssh/id_ecdsa type -1
    debug1: identity file /Users/steve/.ssh/id_ecdsa-cert type -1
    debug1: identity file /Users/steve/.ssh/id_ed25519 type -1
    debug1: identity file /Users/steve/.ssh/id_ed25519-cert type -1
    debug1: identity file /Users/steve/.ssh/id_xmss type -1
    debug1: identity file /Users/steve/.ssh/id_xmss-cert type -1
    debug1: Local version string SSH-2.0-OpenSSH_7.9
    ssh_exchange_identification: read: Connection reset by peer


    So far I'm able to get a network connection, indicating that it's not a firewall problem. As a test, I also tried running sshd under cygwin. I was able to get a terminal prompt with that. I'd prefer to use OpenSSH though, since I want to get it working with powershell.



    I tried setting the logging level to DEBUG, but i'm not getting any other troubleshooting info from there.



    I'd appreciate any guidance.



    *edit: Just realized i should mention. I tried putting a hosts.allow file in the %programdata%/ssh directory. That didn't help and I'm not sure if its applicable in this case.



    *edit2: I tried running sshd in interactive mode per the troubleshooting steps from here. Windows came up with an appcrash when i tried to connect. Here's the output before it crashed:



    PS C:Program FilesOpenSSH> .sshd.exe -d
    debug1: sshd version OpenSSH_for_Windows_7.9, LibreSSL 2.6.5
    debug1: private host key #0: ssh-rsa SHA256:XXX
    debug1: private host key #1: ecdsa-sha2-nistp256 SHA256:XXX
    debug1: private host key #2: ssh-ed25519 SHA256:XXX
    debug1: rexec_argv[0]='C:\Program Files\OpenSSH\sshd.exe'
    debug1: rexec_argv[1]='-d'
    debug1: Bind to port 22 on ::.
    Server listening on :: port 22.
    debug1: Bind to port 22 on 0.0.0.0.
    Server listening on 0.0.0.0 port 22.
    debug1: Server will not fork when running in debugging mode.
    Connection from 192.168.1.39 port 51410 on 192.168.1.3 port 22
    debug1: Client protocol version 2.0; client software version
    OpenSSH_7.9
    debug1: match: OpenSSH_7.9 pat OpenSSH* compat 0x04000000
    debug1: Local version string SSH-2.0-OpenSSH_for_Windows_7.9
    debug1: monitor_read_log: child log fd closed
    debug1: do_cleanup
    debug1: Killing privsep child 10684









    share|improve this question


























      0












      0








      0








      I'm trying to set up an SSH server on my Windows2k8 server. I used the instructions found here. Here's the verbose output:



      steves-air:~ steve$ ssh steve@mydomain.ca -v
      OpenSSH_7.9p1, LibreSSL 2.7.3
      debug1: Reading configuration data /etc/ssh/ssh_config
      debug1: /etc/ssh/ssh_config line 48: Applying options for *
      debug1: Connecting to mydomain.ca port 22.
      debug1: Connection established.
      debug1: identity file /Users/steve/.ssh/id_rsa type -1
      debug1: identity file /Users/steve/.ssh/id_rsa-cert type -1
      debug1: identity file /Users/steve/.ssh/id_dsa type -1
      debug1: identity file /Users/steve/.ssh/id_dsa-cert type -1
      debug1: identity file /Users/steve/.ssh/id_ecdsa type -1
      debug1: identity file /Users/steve/.ssh/id_ecdsa-cert type -1
      debug1: identity file /Users/steve/.ssh/id_ed25519 type -1
      debug1: identity file /Users/steve/.ssh/id_ed25519-cert type -1
      debug1: identity file /Users/steve/.ssh/id_xmss type -1
      debug1: identity file /Users/steve/.ssh/id_xmss-cert type -1
      debug1: Local version string SSH-2.0-OpenSSH_7.9
      ssh_exchange_identification: read: Connection reset by peer


      So far I'm able to get a network connection, indicating that it's not a firewall problem. As a test, I also tried running sshd under cygwin. I was able to get a terminal prompt with that. I'd prefer to use OpenSSH though, since I want to get it working with powershell.



      I tried setting the logging level to DEBUG, but i'm not getting any other troubleshooting info from there.



      I'd appreciate any guidance.



      *edit: Just realized i should mention. I tried putting a hosts.allow file in the %programdata%/ssh directory. That didn't help and I'm not sure if its applicable in this case.



      *edit2: I tried running sshd in interactive mode per the troubleshooting steps from here. Windows came up with an appcrash when i tried to connect. Here's the output before it crashed:



      PS C:Program FilesOpenSSH> .sshd.exe -d
      debug1: sshd version OpenSSH_for_Windows_7.9, LibreSSL 2.6.5
      debug1: private host key #0: ssh-rsa SHA256:XXX
      debug1: private host key #1: ecdsa-sha2-nistp256 SHA256:XXX
      debug1: private host key #2: ssh-ed25519 SHA256:XXX
      debug1: rexec_argv[0]='C:\Program Files\OpenSSH\sshd.exe'
      debug1: rexec_argv[1]='-d'
      debug1: Bind to port 22 on ::.
      Server listening on :: port 22.
      debug1: Bind to port 22 on 0.0.0.0.
      Server listening on 0.0.0.0 port 22.
      debug1: Server will not fork when running in debugging mode.
      Connection from 192.168.1.39 port 51410 on 192.168.1.3 port 22
      debug1: Client protocol version 2.0; client software version
      OpenSSH_7.9
      debug1: match: OpenSSH_7.9 pat OpenSSH* compat 0x04000000
      debug1: Local version string SSH-2.0-OpenSSH_for_Windows_7.9
      debug1: monitor_read_log: child log fd closed
      debug1: do_cleanup
      debug1: Killing privsep child 10684









      share|improve this question
















      I'm trying to set up an SSH server on my Windows2k8 server. I used the instructions found here. Here's the verbose output:



      steves-air:~ steve$ ssh steve@mydomain.ca -v
      OpenSSH_7.9p1, LibreSSL 2.7.3
      debug1: Reading configuration data /etc/ssh/ssh_config
      debug1: /etc/ssh/ssh_config line 48: Applying options for *
      debug1: Connecting to mydomain.ca port 22.
      debug1: Connection established.
      debug1: identity file /Users/steve/.ssh/id_rsa type -1
      debug1: identity file /Users/steve/.ssh/id_rsa-cert type -1
      debug1: identity file /Users/steve/.ssh/id_dsa type -1
      debug1: identity file /Users/steve/.ssh/id_dsa-cert type -1
      debug1: identity file /Users/steve/.ssh/id_ecdsa type -1
      debug1: identity file /Users/steve/.ssh/id_ecdsa-cert type -1
      debug1: identity file /Users/steve/.ssh/id_ed25519 type -1
      debug1: identity file /Users/steve/.ssh/id_ed25519-cert type -1
      debug1: identity file /Users/steve/.ssh/id_xmss type -1
      debug1: identity file /Users/steve/.ssh/id_xmss-cert type -1
      debug1: Local version string SSH-2.0-OpenSSH_7.9
      ssh_exchange_identification: read: Connection reset by peer


      So far I'm able to get a network connection, indicating that it's not a firewall problem. As a test, I also tried running sshd under cygwin. I was able to get a terminal prompt with that. I'd prefer to use OpenSSH though, since I want to get it working with powershell.



      I tried setting the logging level to DEBUG, but i'm not getting any other troubleshooting info from there.



      I'd appreciate any guidance.



      *edit: Just realized i should mention. I tried putting a hosts.allow file in the %programdata%/ssh directory. That didn't help and I'm not sure if its applicable in this case.



      *edit2: I tried running sshd in interactive mode per the troubleshooting steps from here. Windows came up with an appcrash when i tried to connect. Here's the output before it crashed:



      PS C:Program FilesOpenSSH> .sshd.exe -d
      debug1: sshd version OpenSSH_for_Windows_7.9, LibreSSL 2.6.5
      debug1: private host key #0: ssh-rsa SHA256:XXX
      debug1: private host key #1: ecdsa-sha2-nistp256 SHA256:XXX
      debug1: private host key #2: ssh-ed25519 SHA256:XXX
      debug1: rexec_argv[0]='C:\Program Files\OpenSSH\sshd.exe'
      debug1: rexec_argv[1]='-d'
      debug1: Bind to port 22 on ::.
      Server listening on :: port 22.
      debug1: Bind to port 22 on 0.0.0.0.
      Server listening on 0.0.0.0 port 22.
      debug1: Server will not fork when running in debugging mode.
      Connection from 192.168.1.39 port 51410 on 192.168.1.3 port 22
      debug1: Client protocol version 2.0; client software version
      OpenSSH_7.9
      debug1: match: OpenSSH_7.9 pat OpenSSH* compat 0x04000000
      debug1: Local version string SSH-2.0-OpenSSH_for_Windows_7.9
      debug1: monitor_read_log: child log fd closed
      debug1: do_cleanup
      debug1: Killing privsep child 10684






      windows-server-2008 ssh






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Feb 14 at 14:37







      steam23

















      asked Feb 14 at 14:09









      steam23steam23

      11




      11




















          2 Answers
          2






          active

          oldest

          votes


















          0














          It looks like the answer is "you can't get there from here." I found a closed issue on the git which says that w2k8 standard is not supported. I tried installing on a different server that has 2k8R2 on it and that worked easily.






          share|improve this answer






























            0














            FWIW, you could try Cygwin's port of OpenSSH. If you want to just check and see if it works, you can try this one:



            https://github.com/Bill-Stewart/Cygwin-OpenSSH



            It does require Windows PowerShell v2 on Vista/Server 2008, though, so you would need to install that first (which you should hopefully have already).






            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%2f953949%2fssh-exchange-identification-read-connection-reset-by-peer-error-trying-to-co%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









              0














              It looks like the answer is "you can't get there from here." I found a closed issue on the git which says that w2k8 standard is not supported. I tried installing on a different server that has 2k8R2 on it and that worked easily.






              share|improve this answer



























                0














                It looks like the answer is "you can't get there from here." I found a closed issue on the git which says that w2k8 standard is not supported. I tried installing on a different server that has 2k8R2 on it and that worked easily.






                share|improve this answer

























                  0












                  0








                  0







                  It looks like the answer is "you can't get there from here." I found a closed issue on the git which says that w2k8 standard is not supported. I tried installing on a different server that has 2k8R2 on it and that worked easily.






                  share|improve this answer













                  It looks like the answer is "you can't get there from here." I found a closed issue on the git which says that w2k8 standard is not supported. I tried installing on a different server that has 2k8R2 on it and that worked easily.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Feb 15 at 14:50









                  steam23steam23

                  11




                  11























                      0














                      FWIW, you could try Cygwin's port of OpenSSH. If you want to just check and see if it works, you can try this one:



                      https://github.com/Bill-Stewart/Cygwin-OpenSSH



                      It does require Windows PowerShell v2 on Vista/Server 2008, though, so you would need to install that first (which you should hopefully have already).






                      share|improve this answer



























                        0














                        FWIW, you could try Cygwin's port of OpenSSH. If you want to just check and see if it works, you can try this one:



                        https://github.com/Bill-Stewart/Cygwin-OpenSSH



                        It does require Windows PowerShell v2 on Vista/Server 2008, though, so you would need to install that first (which you should hopefully have already).






                        share|improve this answer

























                          0












                          0








                          0







                          FWIW, you could try Cygwin's port of OpenSSH. If you want to just check and see if it works, you can try this one:



                          https://github.com/Bill-Stewart/Cygwin-OpenSSH



                          It does require Windows PowerShell v2 on Vista/Server 2008, though, so you would need to install that first (which you should hopefully have already).






                          share|improve this answer













                          FWIW, you could try Cygwin's port of OpenSSH. If you want to just check and see if it works, you can try this one:



                          https://github.com/Bill-Stewart/Cygwin-OpenSSH



                          It does require Windows PowerShell v2 on Vista/Server 2008, though, so you would need to install that first (which you should hopefully have already).







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Apr 9 at 22:39









                          Bill_StewartBill_Stewart

                          1837




                          1837



























                              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%2f953949%2fssh-exchange-identification-read-connection-reset-by-peer-error-trying-to-co%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

                              RemoteApp sporadic failureWindows 2008 RemoteAPP client disconnects within a matter of minutesWhat is the minimum version of RDP supported by Server 2012 RDS?How to configure a Remoteapp server to increase stabilityMicrosoft RemoteApp Active SessionRDWeb TS connection broken for some users post RemoteApp certificate changeRemote Desktop Licensing, RemoteAPPRDS 2012 R2 some users are not able to logon after changed date and time on Connection BrokersWhat happens during Remote Desktop logon, and is there any logging?After installing RDS on WinServer 2016 I still can only connect with two users?RD Connection via RDGW to Session host is not connecting

                              How to write a 12-bar blues melodyI-IV-V blues progressionHow to play the bridges in a standard blues progressionHow does Gdim7 fit in C# minor?question on a certain chord progressionMusicology of Melody12 bar blues, spread rhythm: alternative to 6th chord to avoid finger stretchChord progressions/ Root key/ MelodiesHow to put chords (POP-EDM) under a given lead vocal melody (starting from a good knowledge in music theory)Are there “rules” for improvising with the minor pentatonic scale over 12-bar shuffle?Confusion about blues scale and chords

                              Esgonzo ibérico Índice Descrición Distribución Hábitat Ameazas Notas Véxase tamén "Acerca dos nomes dos anfibios e réptiles galegos""Chalcides bedriagai"Chalcides bedriagai en Carrascal, L. M. Salvador, A. (Eds). Enciclopedia virtual de los vertebrados españoles. Museo Nacional de Ciencias Naturales, Madrid. España.Fotos