1

My Ubuntu version is 16.04.

Am getting password prompt for root@localhost during the execution of command "sudo start-dfs.sh" from hduser, it is prompting password for root@localhost so i have given main user password but didn't work.

Then i changed the root password (sudo -i) and again tried to connect the localhost using the below command (from root) with new root password but no luck. ssh root@localhost

can anyone suggest the solution please?

1

Check your /etc/ssh/sshd_config file:

Change from:

PermitRootLogin prohibit-password
StrictModes yes

Change to:

PermitRootLogin yes
# StrictModes yes

Then restart the sshd daemon.

$ sudo service sshd restart

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.