How to enable SSH into an Azure Windows VM?
Solution 1:
This error was prompt because you connect to the server without private key, that is requirement. Look at this site: https://docs.microsoft.com/en-us/azure/devops/repos/git/use-ssh-keys-to-authenticate?view=azure-devops&tabs=current-page and try upload your public key after generate pair of key.
Also you might get the established TCP connections, to make sure everything with ssh server is ok, by this command on PowerShell:
Get-NetTCPConnection -State Established
Solution 2:
It seemed only a matter of time, as the setup is now working two hours later with password authentication.
On a different try, restarting the machine also worked.