Posts

Showing posts from October, 2016

ssh localhost during hadoop setup

In apache site, if you simply follow..below in ubuntu it didn't work.. https://hadoop.apache.org/docs/current2/hadoop-project-dist/hadoop-common/SingleCluster.html Setup passphraseless ssh Now check that you can ssh to the localhost without a passphrase: $ ssh localhost If you cannot ssh to localhost without a passphrase, execute the following commands: $ ssh-keygen -t dsa -P '' -f ~/.ssh/id_dsa $ cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys $ chmod 0600 ~/.ssh/authorized_keys So check for 2 things.. a) U have a SSH server installed..do it first. b) Instead of using dsa use rsa $ ssh-keygen -t rsa -P '' -f ~/.ssh/id_rsa $ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys $ chmod 0600 ~/.ssh/authorized_keys