Windows OpenSSH Server prompts Permission denied, please try again when connecting, but obviously the user name and password are fine

1. First talk about the problems encountered

Windows 10 OpenSSH Server is installed in the optional features of Windows 10. As an SSH server, if the user name and password are entered correctly, the prompt Permission denied, please try again keeps appearing when SSH is connected, and restarting the service does not help.

2. Problem solving

  • Check whether the computer name and user name are the same
    Enter the following command in the command line or powershell
    whoami
    
    For example output: test\test
  • Check whether the names before and after are the same, the one in front of \ represents the computer name, and the one after \ represents the user name
  • If it is the same, it is recommended to modify the computer name and restart. problem solved! ! !

3. Cause of the problem

It is not clear yet, it is estimated to be a bug of OpenSSH

Guess you like

Origin blog.csdn.net/qq_44839815/article/details/131690254