SSH into Microsoft Linked Windows 11 account not working

Anonymous
2024-06-07T20:39:52+00:00

Is it possible to SSH into a Windows 11 machine that is linked to a Microsoft account? If yes, thoughts on what I am doing wrong? If it isn't possible, is there a work-around?

I carefully (I think) followed the following instructions and meet all the listed prerequisites: https://learn.microsoft.com/en-us/windows-server/administration/openssh/openssh_install_firstuse?tabs=gui

I am using the Windows build-in OpenSSH server "optional feature". Setup looked like it worked, but I get "Permission denied, please try again" when I attempt to log in. The command I am using to attempt login is "ssh userid@IP" where userid is the name that is returned when I enter the following in Powershell:

$env:USERNAME

and the IP address is the string returned when I enter

ipconfig | select-string  ('(\s)+IPv4.+\s(?<IP>(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}))(\s)\*') -AllMatches | %{ $\_.Matches } | % { $\_.Groups["IP"]} | %{ $\_.Value }

Thanks

Windows for business Windows Client for IT Pros Networking Network connectivity and file sharing

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question. To protect privacy, user profiles for migrated questions are anonymized.

0 comments No comments
{count} votes
Accepted answer
  1. Anonymous
    2024-06-10T11:50:45+00:00

    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

    3 people found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Anonymous
    2024-09-23T02:35:47+00:00

    what a gigantic piece of sh*t this OS is..

    4 people found this answer helpful.
    0 comments No comments