set root password in sshd_config file

July 27, 2017 164 views
Linux Basics Ubuntu 16.04

Hi, i need to enable root ask for password when connecting through ssh, but when i add the line: passwd root in sshd_config file and restart the service it fails. The error message points to that line. I've also set PasswordAuthentication to yes, just above passwd root.

Thanks for any help.

Be the first one to answer this question.