I connected my PC via SSH to the device and after a short timespan (a few minutes) the connection was always reset. I tried to fix it by editing the ssh config on my PC and the Raspberry so I connected to the Pi and ran
echo -e "TCPKeepAlive yes\nServerAliveInterval 2000\nServerAliveCountMax 3" | sudo tee /etc/ssh/sshd_config > /dev/null
It told me in red bad configuration options and after the next connection reset I couldnt connect anymore. Now it always tells me connection refused on port 22 or any other port I try to access.
Is there any workaround on this self inflicted issue or is the only option to reboot from usb.
If thats the case, is there an easy way to use rpiboot on windows?