<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: anuj ray4</title>
    <description>The latest articles on DEV Community by anuj ray4 (@anuj_ray4_38774d61765a10f).</description>
    <link>https://dev.to/anuj_ray4_38774d61765a10f</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2887349%2F561efebc-f77b-4e1b-9f06-41ab5bf190e2.png</url>
      <title>DEV Community: anuj ray4</title>
      <link>https://dev.to/anuj_ray4_38774d61765a10f</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/anuj_ray4_38774d61765a10f"/>
    <language>en</language>
    <item>
      <title>OpenSSH Server (Windows 11) : client_loop: send disconnect: Connection reset</title>
      <dc:creator>anuj ray4</dc:creator>
      <pubDate>Thu, 20 Feb 2025 11:49:33 +0000</pubDate>
      <link>https://dev.to/anuj_ray4_38774d61765a10f/openssh-server-windows-11-clientloop-send-disconnect-connection-reset-4geh</link>
      <guid>https://dev.to/anuj_ray4_38774d61765a10f/openssh-server-windows-11-clientloop-send-disconnect-connection-reset-4geh</guid>
      <description>&lt;p&gt;Well, Based on the reply i found here, &lt;/p&gt;

&lt;p&gt;&lt;a href="https://answers.microsoft.com/en-us/windows/forum/all/ssh-login-to-microsoft-account-linked-windows/69ea0428-5b06-401c-bb86-e45228709e0b" rel="noopener noreferrer"&gt;here&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;i won't be able to connect to microsoft account linked windows host with ease. But since my device is in AD setting, i was able to ssh login to windows host with password authentication. &lt;/p&gt;

&lt;p&gt;But when i try to login with key (added the public key to the .ssh\authorized_keys and enabled PubKeyAuthentication in sshd_config, and also added the firewall inbound rule for ssh in the host), I get this message &lt;br&gt;
&lt;code&gt;client_loop: send disconnect: Connection reset&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;and i also got the debug log with &lt;br&gt;
&lt;code&gt;ssh -i private_key username@ip -vvv&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;and the output was&lt;br&gt;
&lt;code&gt;debug1: Server accepts key: .\\id_conn RSA SHA256:tkeAQw+mF5mye3IKVQkMF190Rkqe/HQ9K1pPkUO4ang explicit&lt;br&gt;
debug3: sign_and_send_pubkey: using publickey-hostbound-v00@openssh.com with RSA SHA256:tkeAQw+mF5mye3IKVQkMF190Rkqe/HQ9K1pPkUO4ang&lt;br&gt;
debug3: sign_and_send_pubkey: signing using rsa-sha2-512 SHA256:tkeAQw+mF5mye3IKVQkMF190Rkqe/HQ9K1pPkUO4ang&lt;br&gt;
debug3: send packet: type 50&lt;br&gt;
debug3: receive packet: type 52&lt;br&gt;
Authenticated to 192.168.1.184 ([192.168.1.184]:22) using "publickey".&lt;br&gt;
debug1: channel 0: new session [client-session] (inactive timeout: 0)&lt;br&gt;
debug3: ssh_session2_open: channel_new: 0&lt;br&gt;
debug2: channel 0: send open&lt;br&gt;
debug3: send packet: type 90&lt;br&gt;
debug1: Requesting no-more-sessions@openssh.com&lt;br&gt;
debug3: send packet: type 80&lt;br&gt;
debug1: Entering interactive session.&lt;br&gt;
debug1: pledge: filesystem&lt;br&gt;
debug3: client_repledge: enter&lt;br&gt;
debug1: ENABLE_VIRTUAL_TERMINAL_INPUT is supported. Reading the VTSequence from console&lt;br&gt;
debug3: This windows OS supports conpty&lt;br&gt;
debug1: ENABLE_VIRTUAL_TERMINAL_PROCESSING is supported. Console supports the ansi parsing&lt;br&gt;
debug3: Successfully set console output code page from:65001 to 65001&lt;br&gt;
debug3: Successfully set console input code page from:437 to 65001&lt;br&gt;
debug3: recv - from CB ERROR:10054, io:000002519BD65E30&lt;br&gt;
debug3: send packet: type 1&lt;br&gt;
debug3: send - WSASend() ERROR:10054, io:000002519BD65E30&lt;br&gt;
client_loop: send disconnect: Connection reset&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;So, I can't login with the key. (but the catch is when i ran the sshd in debug mode with &lt;code&gt;sshd -d&lt;/code&gt; in the host, i was able to login with key as well). &lt;/p&gt;

&lt;p&gt;Yelp....&lt;/p&gt;

</description>
      <category>openssh</category>
    </item>
  </channel>
</rss>
