Hello,
Connecting to a Windows 11 system that is linked to a Microsoft account using SSH is not possible natively. The SSH server available in Windows 11, OpenSSH-Server, is not intended to work with Microsoft accounts. It only supports local accounts or Active Directory accounts.
To authenticate through SSH, you will need to establish a local account-based SSH server on the Windows 11 system. Afterward, you can connect to it using the local user account credentials rather than the Microsoft account.
See link below.
https://learn.microsoft.com/windows-server/admi...
Best regards
Zunhui