On Thu, Oct 25, 2012 at 7:01 AM,  <[email protected]> wrote:
> Hi Brahma,
>
> I am on Mac OS X it dosent have  copy cmd i.e
>
> sh-copy-id -i
>
> I copyed it as
>
> mediaadmin$ cat ~/.ssh/id_rsa.pub | ssh [email protected] 'cat >> 
> ~/.ssh/authorized_keys'
> Password:
>
> and did
> ssh 10.203.33.80 and it asked for password.

The most common cause of this (once the .pub is properly copied to
authorized_keys) is permissions problems. Make sure your .ssh/
directory is mode 700 (rwx------) and your .ssh/authorized_keys file
is mode 600 (rw-------) and your home directory is not group-writable.

chmod 700 ~/.ssh
chmod 600 ~/.ssh/authorized_keys
chmod go-w ~

If the remote machine is running RHEL or CentOS, you might also have a
SELinux labelling problem.
https://bugzilla.redhat.com/show_bug.cgi?id=499343 and
http://bugs.centos.org/view.php?id=4959

The workaround is to use the restorecon command, but it is easy to
misuse and I am not an expert so I am uncomfortable providing explicit
instructions. Check your /var/log/auth.log or similar on the remote
host to see if it has messages explaining why pubkey authentication
was not allowed.

-andy

>
> Master:~ mediaadmin$ ssh 10.203.33.80
> Password:
> Last login: Thu Oct 25 19:04:31 2012 from master
>
>
> Please suggest
>
> Thanks & regards
> Yogesh Kumar
>
> ________________________________________
> From: Brahma Reddy Battula [[email protected]]
> Sent: Thursday, October 25, 2012 6:38 PM
> To: [email protected]
> Subject: RE: ERROR: ssh-copy-id: command not found IN HADOOP DISTRIBUTED MODE
>
> I think master machine authorized-key  is missed.
>
> Please do following..
>
> ssh-copy-id -i ~/.ssh/id_rsa.pub {IP of Master machine}..
>
> Before starting cluster better to check whether ssh is enable or not by doing 
> ssh {slave or master IP} from Master ( here it should not ask passwd).
>
> ________________________________________
> From: [email protected] [[email protected]]
> Sent: Thursday, October 25, 2012 7:49 PM
> To: [email protected]
> Subject: RE: ERROR: ssh-copy-id: command not found IN HADOOP DISTRIBUTED MODE
>
> Thanks All,
>
> The copy has been done but here comes another horrible issue.
>
> when I log in as Master
>
>
> ssh Master it asks for Password
>
> Master:~ mediaadmin$ ssh Master
> Password: abc
> Last login: Thu Oct 25 17:13:30 2012
> Master:~ mediaadmin$
>
>
> and for Slave it dosent ask.
>
> Master:~ mediaadmin$ ssh pluto@Slave
> Last login: Thu Oct 25 17:15:16 2012 from 10.203.33.80
> plutos-iMac:~ pluto$
>
>
>
> now if I run command start-dfs.sh from Master logged in terminal it asks for 
> passwords
>
> Master:~ mediaadmin$ ssh master
> Password:
> Last login: Thu Oct 25 17:16:44 2012 from master
> Master:~ mediaadmin$ start-dfs.sh
> starting namenode, logging to 
> /HADOOP/hadoop-0.20.2/bin/../logs/hadoop-mediaadmin-namenode-Master.out
> Password:Password: abc
> Password: abc
> Password:
> Master: Permission denied (publickey,keyboard-interactive).
> Password:
> Password:
> Slave: Permission denied (publickey,keyboard-interactive).
> ....
>
>
> Why is it asking for password when I have configure password less ssh?
> And even its not accepting Master password and Slave password..
>
>
> Please help and suggest
>
> Thanks & regards
> Yogesh Kumar
>
> ________________________________________
> From: Nitin Pawar [[email protected]]
> Sent: Thursday, October 25, 2012 3:31 PM
> To: [email protected]
> Subject: Re: ERROR: ssh-copy-id: command not found IN HADOOP DISTRIBUTED MODE
>
> operating system you are using will be of good help to answer your question.
>
> Normally the command you are looking for is provided by "openssh-clients"
> Install this package if not already.
>
> If installed normally on a redhat system its placed at /usr/bin/ssh-copy-id
>
> On Thu, Oct 25, 2012 at 3:24 PM,  <[email protected]> wrote:
>> Hi All,
>>
>> I am trying to copy the public key by this command.
>>
>> Master:~ mediaadmin$ ssh-copy -id -i $HOME/.ssh/id_rsa.pub pluto@Slave
>>
>> I have two machines Master Name is pluto and same name is of Slave. (Admin)
>>
>> And I got this error, Where I am going wrong?
>>
>> ssh-copy-id: command not found
>>
>>
>> Please suggest
>>
>> Thanks & regards
>> Yogesh Kumar
>>
>>
>> The information contained in this electronic message and any attachments to
>> this message are intended for the exclusive use of the addressee(s) and may
>> contain proprietary, confidential or privileged information. If you are not
>> the intended recipient, you should not disseminate, distribute or copy this
>> e-mail. Please notify the sender immediately and destroy all copies of this
>> message and any attachments.
>>
>> WARNING: Computer viruses can be transmitted via email. The recipient should
>> check this email and any attachments for the presence of viruses. The
>> company accepts no liability for any damage caused by any virus transmitted
>> by this email.
>>
>> www.wipro.com
>
>
>
> --
> Nitin Pawar
>
> Please do not print this email unless it is absolutely necessary.
>
> The information contained in this electronic message and any attachments to 
> this message are intended for the exclusive use of the addressee(s) and may 
> contain proprietary, confidential or privileged information. If you are not 
> the intended recipient, you should not disseminate, distribute or copy this 
> e-mail. Please notify the sender immediately and destroy all copies of this 
> message and any attachments.
>
> WARNING: Computer viruses can be transmitted via email. The recipient should 
> check this email and any attachments for the presence of viruses. The company 
> accepts no liability for any damage caused by any virus transmitted by this 
> email.
>
> www.wipro.com
>
> Please do not print this email unless it is absolutely necessary.
>
> The information contained in this electronic message and any attachments to 
> this message are intended for the exclusive use of the addressee(s) and may 
> contain proprietary, confidential or privileged information. If you are not 
> the intended recipient, you should not disseminate, distribute or copy this 
> e-mail. Please notify the sender immediately and destroy all copies of this 
> message and any attachments.
>
> WARNING: Computer viruses can be transmitted via email. The recipient should 
> check this email and any attachments for the presence of viruses. The company 
> accepts no liability for any damage caused by any virus transmitted by this 
> email.
>
> www.wipro.com

Reply via email to