SSH Tunnel to Windows Server 2025 sshd with Key based Auth fails, Interactive/Password auth works fine
In RDM I use an SSH Tunnel to a Windows 2025 Server running the native sshd service, and then run many sessions over it.
It has worked perfectly fine with Password auth, I was looking to switch to Private/Public Key Auth.
However, even though I have gotten it to accept the auth the SSH Tunnel session immediately closes/crashes, and in the Windows Event log you can see.
"sshd: ssh_dispatch_run_fatal: Connection from 10.215.246.227 port 63558: invalid format"
This entry is immediately after "sshd: Accepted publickey for".....
SSH Shell with the same key works perfectly fine, and again using Interactive/password auth for the tunnel works.
Any Ideas?
Windows Server 2025 fully updated, it is AD Joined (since shell and password work dont think ad matters but who knows)
The username does start with a ! (i.e !firstlast ), might be unrelated, but just noting.
Hello.
Thanks for the detailed report — that's a good find. A few questions to help narrow this down:
If you're able to, two things that would really help us pin this down:
In the meantime, password auth for the tunnel remains a workaround.
Best regard
Carl Marien