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
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
Noted...one friend was following the steps but it didn't work.
ReplyDeleteLook at the error msgs..its always leading.
The friend made chmod +777 to authorized_keys and hence the ssh agent was complaining on ssh-add as too generic permissions.
Check permissions of files and directory id_rsa.
chmod 600 ~/.ssh/authorized_keys