I installed the latest openssh-server on debian with the following command:
apt-get install openssh-server
I was able to connect to the ssh server but wasn’t able to login via root account. After the 3rd password attempt, I would get the following message:
Permission denied (publickey,password).
The default configuration doesn’t allow root ssh access via password. In order to do that I had to replace the following lines in the file /etc/ssh/sshd_config:
PermitRootLogin without-password #PasswordAuthentication yes
with the below lines:
PermitRootLogin yes PasswordAuthentication yes