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
For example output: test\testwhoami
- 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