root@localhost’s password: localhost: Permission denied, please try again

By Kashif Khan

enter image description here

I am trying to setup Hadoop in “Pseudo-distributed Mode”. I have already performed the below steps:

  • I have installed Openssh-server.
  • I have generated the rsa type key pair.
  • Copied *rsa.pub to authorized_keys folder for the current user.
  • I gave chmod 600 permissions for authorized_keys file.
  • I have set PermitRootLogin yes in the sudo gedit /etc/ssh/sshd_config

I am able to login as ssh localhost which is not asking for password. But when running sudo /usr/local/hadoop-2.7.3/sbin/start-dfs.sh asks for root password. If i do provide root password then also it does not allow.

Source:: http://askubuntu.com/questions/870668/rootlocalhosts-password-localhost-permission-denied-please-try-again


Leave a Reply