Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
MapReduce, mail # user - Re: ERROR: ssh-copy-id: command not found IN HADOOP DISTRIBUTED MODE


Copy link to this message
-
Re: ERROR: ssh-copy-id: command not found IN HADOOP DISTRIBUTED MODE
Andy Isaacson 2012-10-25, 20:38
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