SSH; Connection reset by 192.168.1.3 port 22 Error from TruenAS server to Windows laptop

Hi,

I am having issue doing ssh from Truenas to Windows Laptop, where as the SSH connection from WIndows laptop to truenas works fine.

I am getting “Connection reset by 192.168.1.3 port 22” whenever try to do ssh from truenas to windows 11 laptop.

Note: Openssh server is running on windows laptop

Any idea how to fix this issue, i tried many trouble shooting methods but in vain.

Thanks,
Nagesh R

did you check if port 22 is not blocked on the windows laptop, and it bind to 192.168.1.3?

ssh -v -v -v 192.168.1.3

…will potentially be helpful.
Also, can you ssh from any other machine to that Windows laptop?

Connection reset means the Windows end is actively saying no, so chances are that the problem is on that end of things.

Port 22 is fine. I verified this. port is not the problem.

  1. Also, just few minutes back, I was able to ssh successfully from True NAS to windows laptop. Later I wanted to find out what exactly made it work.

  2. I was experimenting and deleted the SSH key under - System–> SSH Key Pair.
    later SSH stopped working and I started to get connection reset error again.

  3. So the issue is on the true nas side SSH Connections and SSH keypairs side settings under System menu.

  4. Please let me know the exact procedure to configure these two so that we can successfully and consistently do SSH from trueNAS side to windows laptop

Thanks

I tried doing ssh from TrueNAS core to a linux laptop and it worked for normal user but for root user it was showing permisson denied. Dont know the reason.

Next, I was trying ssh from linux laptop to my windows laptop. During this process, I changed the DHCP mode to manual mode IP address on my windows laptop.

After this change, I tried SSH from True NAS core to windows laptop, it is working fine.

Any idea behind this, why SSH does not work for DHCP mode??

Thanks