First, the system comes with its own SSH has a problem, you need to remove it and re-install it
sudo apt-get remove openssh-server
Second, and then reinstall
sudo apt-get install openssh-server
Third, configure sshd_config
vim sudo / etc / SSH / sshd_config Port 22 PasswordAuthentication yes # allow the user name and password to log in
Fourth, we modify the restart after the SSH service
sudo service ssh restart