Windows 10: Windows 10 OpenSSH Server authentication stopped working, no changes made, been working for...

Discus and support Windows 10 OpenSSH Server authentication stopped working, no changes made, been working for... in Windows 10 Customization to solve the problem; I'm not sure if an update caused this or what but I have been SSHing to my Windows 10 PC for several years and now all of a sudden I can't... Discussion in 'Windows 10 Customization' started by JorgSmash, Aug 3, 2020.

  1. JorgSmash Win User

    Windows 10 OpenSSH Server authentication stopped working, no changes made, been working for...


    I'm not sure if an update caused this or what but I have been SSHing to my Windows 10 PC for several years and now all of a sudden I can't authenticate. I have confirmed the port is open, I removed the host keys and regenerated new ones, uninstalled and reinstalled the service. Nothing has worked. I keep getting the same error: "Connection reset by host"



    ssh -vvv leona@192.168.50.10

    OpenSSH_7.1p2, OpenSSL 1.0.1g 7 Apr 2014

    debug1: Reading configuration data /etc/ssh_config

    debug2: ssh_connect: needpriv 0

    debug1: Connecting to 192.168.50.10 [192.168.50.10] port 22.

    debug1: Connection established.

    debug1: key_load_public: No such file or directory

    debug1: identity file /home/mobaxterm/.ssh/id_rsa type -1

    debug1: key_load_public: No such file or directory

    debug1: identity file /home/mobaxterm/.ssh/id_rsa-cert type -1

    debug1: key_load_public: No such file or directory

    debug1: identity file /home/mobaxterm/.ssh/id_dsa type -1

    debug1: key_load_public: No such file or directory

    debug1: identity file /home/mobaxterm/.ssh/id_dsa-cert type -1

    debug1: key_load_public: No such file or directory

    debug1: identity file /home/mobaxterm/.ssh/id_ecdsa type -1

    debug1: key_load_public: No such file or directory

    debug1: identity file /home/mobaxterm/.ssh/id_ecdsa-cert type -1

    debug1: key_load_public: No such file or directory

    debug1: identity file /home/mobaxterm/.ssh/id_ed25519 type -1

    debug1: key_load_public: No such file or directory

    debug1: identity file /home/mobaxterm/.ssh/id_ed25519-cert type -1

    debug1: Enabling compatibility mode for protocol 2.0

    debug1: Local version string SSH-2.0-OpenSSH_7.1

    debug1: Remote protocol version 2.0, remote software version OpenSSH_for_Windows_7.7

    debug1: match: OpenSSH_for_Windows_7.7 pat OpenSSH* compat 0x04000000

    debug2: fd 3 setting O_NONBLOCK

    debug1: Authenticating to 192.168.50.10:22 as 'leona'

    debug1: SSH2_MSG_KEXINIT sent

    debug1: SSH2_MSG_KEXINIT received

    debug2: kex_parse_kexinit: *** Email address is removed for privacy ***,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1

    debug2: kex_parse_kexinit: *** Email address is removed for privacy ***,ssh-rsa,*** Email address is removed for privacy ***,*** Email address is removed for privacy ***,ssh-dss,*** Email address is removed for privacy ***,*** Email address is removed for privacy ***,*** Email address is removed for privacy ***,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-ed25519

    debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,*** Email address is removed for privacy ***,aes128-cbc,3des-cbc,arcfour,*** Email address is removed for privacy ***,*** Email address is removed for privacy ***,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,*** Email address is removed for privacy ***

    debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,*** Email address is removed for privacy ***,aes128-cbc,3des-cbc,arcfour,*** Email address is removed for privacy ***,*** Email address is removed for privacy ***,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,*** Email address is removed for privacy ***

    debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,*** Email address is removed for privacy ***,*** Email address is removed for privacy ***,hmac-sha2-256,hmac-sha2-512,hmac-ripemd160,hmac-sha1-96,hmac-md5-96,*** Email address is removed for privacy ***,*** Email address is removed for privacy ***,*** Email address is removed for privacy ***,*** Email address is removed for privacy ***,*** Email address is removed for privacy ***,*** Email address is removed for privacy ***,*** Email address is removed for privacy ***,*** Email address is removed for privacy ***,*** Email address is removed for privacy ***,*** Email address is removed for privacy ***

    debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,*** Email address is removed for privacy ***,*** Email address is removed for privacy ***,hmac-sha2-256,hmac-sha2-512,hmac-ripemd160,hmac-sha1-96,hmac-md5-96,*** Email address is removed for privacy ***,*** Email address is removed for privacy ***,*** Email address is removed for privacy ***,*** Email address is removed for privacy ***,*** Email address is removed for privacy ***,*** Email address is removed for privacy ***,*** Email address is removed for privacy ***,*** Email address is removed for privacy ***,*** Email address is removed for privacy ***,*** Email address is removed for privacy ***

    debug2: kex_parse_kexinit: *** Email address is removed for privacy ***,zlib,none

    debug2: kex_parse_kexinit: *** Email address is removed for privacy ***,zlib,none

    debug2: kex_parse_kexinit:

    debug2: kex_parse_kexinit:

    debug2: first_kex_follows 0

    debug2: reserved 0

    debug2: kex_parse_kexinit: curve25519-sha256,*** Email address is removed for privacy ***,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256,diffie-hellman-group14-sha1

    debug2: kex_parse_kexinit: ssh-rsa,rsa-sha2-512,rsa-sha2-256,ecdsa-sha2-nistp256,ssh-ed25519

    debug2: kex_parse_kexinit: *** Email address is removed for privacy ***,aes128-ctr,aes192-ctr,aes256-ctr,*** Email address is removed for privacy ***,*** Email address is removed for privacy ***

    debug2: kex_parse_kexinit: *** Email address is removed for privacy ***,aes128-ctr,aes192-ctr,aes256-ctr,*** Email address is removed for privacy ***,*** Email address is removed for privacy ***

    debug2: kex_parse_kexinit: *** Email address is removed for privacy ***,*** Email address is removed for privacy ***,*** Email address is removed for privacy ***,*** Email address is removed for privacy ***,*** Email address is removed for privacy ***,*** Email address is removed for privacy ***,*** Email address is removed for privacy ***,hmac-sha2-256,hmac-sha2-512,hmac-sha1

    debug2: kex_parse_kexinit: *** Email address is removed for privacy ***,*** Email address is removed for privacy ***,*** Email address is removed for privacy ***,*** Email address is removed for privacy ***,*** Email address is removed for privacy ***,*** Email address is removed for privacy ***,*** Email address is removed for privacy ***,hmac-sha2-256,hmac-sha2-512,hmac-sha1

    debug2: kex_parse_kexinit: none

    debug2: kex_parse_kexinit: none

    debug2: kex_parse_kexinit:

    debug2: kex_parse_kexinit:

    debug2: first_kex_follows 0

    debug2: reserved 0

    debug1: kex: server->client aes128-ctr hmac-sha1 none

    debug1: kex: client->server aes128-ctr hmac-sha1 none

    debug1: expecting SSH2_MSG_KEX_ECDH_REPLY

    debug3: hostkeys_foreach: reading file "/home/mobaxterm/.ssh/known_hosts"

    Warning: Permanently added '192.168.50.10' RSA to the list of known hosts.

    debug2: set_newkeys: mode 1

    debug1: SSH2_MSG_NEWKEYS sent

    debug1: expecting SSH2_MSG_NEWKEYS

    debug2: set_newkeys: mode 0

    debug1: SSH2_MSG_NEWKEYS received

    debug1: SSH2_MSG_SERVICE_REQUEST sent

    debug2: service_accept: ssh-userauth

    debug1: SSH2_MSG_SERVICE_ACCEPT received

    debug2: key: /home/mobaxterm/.ssh/id_rsa 0x0,

    debug2: key: /home/mobaxterm/.ssh/id_dsa 0x0,

    debug2: key: /home/mobaxterm/.ssh/id_ecdsa 0x0,

    debug2: key: /home/mobaxterm/.ssh/id_ed25519 0x0,

    Connection reset by 192.168.50.10



    The output above seems to indicate it is looking for an RSA key, which I have provided to the ssh client. I have used it this way many times. I have Key based authentication enabled in sshd_config but I also have a 'match' parameter at the end of the file to allow password auth for my local LAN. Neither password auth, nor pubkey auth work. I have tried on multiple computers. Even my phone, which I have used countless times to ssh in using pubkey auth, can no longer authenticate. I also searched around the web to see if I could find a solution. Many people have had this issue in the past but none of the proposed solutions worked. Again, I tried removing the host keys and regenerating, uninstalling and reinstalling the SSH service. I went looking for a log file that was mentioned in a post, but it wasn't there C:\Windows\System32\OpenSSH\*log.

    :)
     
    JorgSmash, Aug 3, 2020
    #1
  2. Diapolo10 Win User

    Having trouble getting the built-in OpenSSH server to work

    Goal: I'm trying to set up the Windows built-in OpenSSH server (version 0.0.1.0, as I recall that being the latest one) in order to use my desktop PC remotely should I have the need for raw performance when on the road through a Windows
    10 laptop.

    Problem: Despite following
    the official guide
    to the letter, when I try to run "Start-Service sshd" in PowerShell I get this error:

    Code:
        Start-Service : Service 'OpenSSH SSH Server (sshd)' cannot be started due to the following error: Palvelun sshd avaamin    en tietokoneessa . epäonnistui.    At line:1 char:1    + Start-Service sshd    + ~~~~~~~~~~~~~~~~~~        + CategoryInfo          : OpenError: (System.ServiceProcess.ServiceController:ServiceController) [Start-Service],       ServiceCommandException        + FullyQualifiedErrorId : CouldNotStartService,Microsoft.PowerShell.Commands.StartServiceCommand
    If I run the executable without "Start-Service", however, it runs and seemingly waits for connections, but according to the Services tab in Task Manager it's not actually doing anything at all, nor is there an SSH user account associated
    with it.

    What I've tried:

    • Restarting Windows (after every installation)
    • Uninstalling and re-installing both the server and the client (both from PowerShell and through the Settings application)
    • Switched to local account instead of a Microsoft account (suggested on a forum thread, tried the previous steps again)
    • Using an elevated PowerShell instance with admin rights

    System information:

    • Windows 10 Home, version 1809, build 17763.379
    • Hardware configuration:
      • CPU: i9-9900k @ 4.9GHz
      • RAM: 32GB 3200MHz DDR4
      • GPU: Asus ROG Strix GTX 1080
      • Motherboard: Asus PRIME Z390-A, BIOS version 0805

    Let me know if other information is required.
     
    Diapolo10, Aug 3, 2020
    #2
  3. Brink Win User
    Windows Server 2019 Includes OpenSSH


    Source: Windows Server 2019 Includes OpenSSH - Windows Developer Blog
     
    Brink, Aug 3, 2020
    #3
  4. Brink Win User

    Windows 10 OpenSSH Server authentication stopped working, no changes made, been working for...

    Windows Server 2019 Includes OpenSSH

    Source: Windows Server 2019 Includes OpenSSH - Windows Developer Blog
     
    Brink, Aug 3, 2020
    #4
Thema:

Windows 10 OpenSSH Server authentication stopped working, no changes made, been working for...

Loading...
  1. Windows 10 OpenSSH Server authentication stopped working, no changes made, been working for... - Similar Threads - OpenSSH Server authentication

  2. sftp by OpenSSH server on windows 10 doesn't work with multiple drives.

    in Windows 10 Gaming
    sftp by OpenSSH server on windows 10 doesn't work with multiple drives.: I have an openssh server set up on my windows machine. I set up this for the sftp purpose.the trouble is, I cannot access two drives at the same time.At first the sftp would be at the c-drive. but the primary contents that i wanted to access was in E:, and It seemed...
  3. sftp by OpenSSH server on windows 10 doesn't work with multiple drives.

    in Windows 10 Network and Sharing
    sftp by OpenSSH server on windows 10 doesn't work with multiple drives.: I have an openssh server set up on my windows machine. I set up this for the sftp purpose.the trouble is, I cannot access two drives at the same time.At first the sftp would be at the c-drive. but the primary contents that i wanted to access was in E:, and It seemed...
  4. sftp by OpenSSH server on windows 10 doesn't work with multiple drives.

    in Windows 10 Software and Apps
    sftp by OpenSSH server on windows 10 doesn't work with multiple drives.: I have an openssh server set up on my windows machine. I set up this for the sftp purpose.the trouble is, I cannot access two drives at the same time.At first the sftp would be at the c-drive. but the primary contents that i wanted to access was in E:, and It seemed...
  5. Network Level Authentication stopped working

    in Windows 10 Gaming
    Network Level Authentication stopped working: My main computer is Windows 11 call it Main and part of a small network controlled by a Windows 2016 Server Essentials. For several years I have been logging in remotely to Main, which has 2 or 3 months ago upgraded to Windows 11, and the other network computers using the RD...
  6. Network Level Authentication stopped working

    in Windows 10 Software and Apps
    Network Level Authentication stopped working: My main computer is Windows 11 call it Main and part of a small network controlled by a Windows 2016 Server Essentials. For several years I have been logging in remotely to Main, which has 2 or 3 months ago upgraded to Windows 11, and the other network computers using the RD...
  7. OpenSSH SFTP not working

    in Windows 10 Network and Sharing
    OpenSSH SFTP not working: Hello everyone,I'm trying to setup openssh and sftp protocol in both of my computers by following this guide from Microsoft:https://docs.microsoft.com/en-us/windows-server/administration/openssh/openssh_install_firstuseI've successfully remoted login from my client computer...
  8. OpenSSH Server / client on W2K16 server

    in Windows 10 Virtualization
    OpenSSH Server / client on W2K16 server: Hi there running a W2K16 server as a VM - seems the the optional features install don't include the openSSH server or client -- I'm using the Desktop experience standard edition of W2K16 server However using the powershell command from within the VM both products get...
  9. Connecting SQL Server 2016 with Windows Authentication is not working.

    in Windows 10 Customization
    Connecting SQL Server 2016 with Windows Authentication is not working.: Dear Experts, i have two virtual Machines with SQL Server 2016 installed. on VM 1 i connect the SQL Server of VM2 with Windows Authentication and it works. But when i connect the SQL Server of VM1 from VM2 with Windows authentication, it does not connect. Both the...
  10. Having trouble getting the built-in OpenSSH server to work

    in Windows 10 Customization
    Having trouble getting the built-in OpenSSH server to work: Goal: I'm trying to set up the Windows built-in OpenSSH server (version 0.0.1.0, as I recall that being the latest one) in order to use my desktop PC remotely should I have the need for raw performance when on the road through a Windows 10 laptop. Problem: Despite following...