You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-user@hadoop.apache.org by Bin YANG <ya...@gmail.com> on 2008/01/23 08:09:16 UTC
How to disable the requirement of ssh
Dear colleagues,
As we know, hadoop uses ssh to connect other nodes. It is a little
inconvenient, because it requires me type the password for each nodes.
I find ssh can disable the password requirement for localhost in
"Hadoop quick start", is there a way to disable the password
requirement of ssh for other nodes?
Thanks!
Best wishes,
Bin YANG
--
Bin YANG
Department of Computer Science and Engineering
Fudan University
Shanghai, P. R. China
EMail: yangbinisme82@gmail.com
Re: How to disable the requirement of ssh
Posted by Ted Dunning <td...@veoh.com>.
Also read the manual section for ssh.
On 1/23/08 7:26 AM, "Sagar Naik" <sa...@visvo.com> wrote:
> Hi,
>
> http://wiki.apache.org/nutch/NutchHadoopTutorial
> Pl go to the section :
>
>
> Setting Up The Deployment Architecture
>
>
> - Sagar
> Bin YANG wrote:
>> Dear colleagues,
>>
>> As we know, hadoop uses ssh to connect other nodes. It is a little
>> inconvenient, because it requires me type the password for each nodes.
>>
>> I find ssh can disable the password requirement for localhost in
>> "Hadoop quick start", is there a way to disable the password
>> requirement of ssh for other nodes?
>>
>> Thanks!
>>
>> Best wishes,
>> Bin YANG
>>
>>
>>
>>
>
Re: How to disable the requirement of ssh
Posted by Sagar Naik <sa...@visvo.com>.
Hi,
http://wiki.apache.org/nutch/NutchHadoopTutorial
Pl go to the section :
Setting Up The Deployment Architecture
- Sagar
Bin YANG wrote:
> Dear colleagues,
>
> As we know, hadoop uses ssh to connect other nodes. It is a little
> inconvenient, because it requires me type the password for each nodes.
>
> I find ssh can disable the password requirement for localhost in
> "Hadoop quick start", is there a way to disable the password
> requirement of ssh for other nodes?
>
> Thanks!
>
> Best wishes,
> Bin YANG
>
>
>
>
--
This message has been scanned for viruses and
dangerous content and is believed to be clean.
Re: How to disable the requirement of ssh
Posted by Ted Dziuba <te...@persai.com>.
You can use public keys and ssh-agent. This page might help:
http://sial.org/howto/openssh/publickey-auth/
Ted
Bin YANG wrote:
> Dear colleagues,
>
> As we know, hadoop uses ssh to connect other nodes. It is a little
> inconvenient, because it requires me type the password for each nodes.
>
> I find ssh can disable the password requirement for localhost in
> "Hadoop quick start", is there a way to disable the password
> requirement of ssh for other nodes?
>
> Thanks!
>
> Best wishes,
> Bin YANG
>
>
>
>
Re: How to disable the requirement of ssh
Posted by Amar Kamat <am...@yahoo-inc.com>.
1. For key-pair generation :
ssh-keygen -t dsa -P '' -f ~/.ssh/id_dsa
2. For localhost sshless :
cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
3. For password less ssh across machines : (you need to type your
password once for the first time)
cat ~/.ssh/id_dsa.pub | ssh user@machine "cat - >> ~/.ssh/authorized_keys"
Basically your 'public key' should be copied to the 'authorized_keys'
file on all the machines.
4. Btw you might want to avoid the "yes/no" question when you do ssh,
for that add the following lines to ~/.ssh/config
{code}
StrictHostKeyChecking no
NoHostAuthenticationForLocalhost yes
{code}
Btw if your home NFS mounted then no need to copy the keys (i.e skip step 3)
Amar
Bin YANG wrote:
> Dear colleagues,
>
> As we know, hadoop uses ssh to connect other nodes. It is a little
> inconvenient, because it requires me type the password for each nodes.
>
> I find ssh can disable the password requirement for localhost in
> "Hadoop quick start", is there a way to disable the password
> requirement of ssh for other nodes?
>
> Thanks!
>
> Best wishes,
> Bin YANG
>
>
>
>