First, you must delete and reinstall the installed openssh.

Also, in sshd_config, the port should be changed to a different port than 22 times.

By default, Port 22 is commented out. Uncomment and change the commenting.

The reason is that Windows is already using port 22. If you must write No. 22, disable port No. 22 used in Windows.

The summary is as follows.

sudo apt-get remove --purge openssh-server
sudo apt-get install openssh-server
sudo vi /etc/ssh/sshd_config # Change Port from 22 to 222
sudo service ssh --full-restart