hadoop-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Konstantin Boudnik <...@yahoo-inc.com>
Subject Re: fail to setup passphraseless ssh and need some help
Date Thu, 02 Jul 2009 05:18:07 GMT
Yet another possibility is that your SSH daemon isn't configured to accept 
publickey as a valid authorization mean.

Try to do ssh -v localhost and check if there's something similar to the following:

debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Trying private key: /home/xxx/.ssh/identity
debug1: Trying private key: /home/xxx/.ssh/id_rsa
debug1: Offering public key: /home/xxx/.ssh/id_dsa
debug1: Server accepts key: pkalg ssh-dss blen 435
debug1: read PEM private key done: type DSA
debug1: Authentication succeeded (publickey).

Cos

On 7/1/09 10:11 PM, fred wang wrote:
> I have setup ./.ssh/authorized keys has permssion 600, but it didn't work.
> Thanks anyway
>
> ls -l .ssh/authorized_keys
> -rw------- 1 xxx xxx 1222 2009-07-02 13:08 .ssh/authorized_keys
>
> On Thu, Jul 2, 2009 at 12:15 AM, Konstantin Boudnik<cos@yahoo-inc.com>wrote:
>
>> Make sure that your ~/.ssh/authorized_keys has permissions 600
>>
>> Cos
>>
>>
>> On 7/1/09 7:35 AM, fred wang wrote:
>>
>>> Hi all,
>>>
>>>    I failed to setup passphraseless ssh(I mean, I still need to input
>>> password to do ssh localhost) when I tried to configure Hadoop to run on
>>> psuedo-distributed operation,  could anyone help me solve this issue?
>>> Thanks!
>>>
>>> (1)I use the Putty0.6 to remote access to Ubuntu by SSH.
>>>
>>> (2) execution steps and ouput
>>>
>>> $ ssh-keygen -t dsa -P '' -f ~/.ssh/id_dsa
>>> Generating public/private dsa key pair.
>>> Your identification has been saved in /home/xxx/.ssh/id_dsa.
>>> Your public key has been saved in /home/xxx/.ssh/id_dsa.pub.
>>> The key fingerprint is:
>>> a9:39:4c:9b:22:f9:a4:77:70:24:fa:bf:12:f5:81:81 xxx
>>>
>>>
>>> **note: it doesn't have message  'Enter passphrase (empty for no
>>> passphrase):
>>>      Enter same passphrase again: ' which appear in some introductory
>>> paper.
>>> "
>>>
>>> $ cat ~/.ssh/id_dsa.pub>>   ~/.ssh/authorized_keys
>>> no output
>>>
>>> $ ssh localhost
>>> The authenticity of host 'localhost (127.0.0.1)' can't be established.
>>> RSA key fingerprint is 4f:a1:ff:ed:0c:46:3e:a9:8c:97:bc:b7:46:3e:35:d2.
>>> Are you sure you want to continue connecting (yes/no)? yes
>>> Warning: Permanently added 'localhost' (RSA) to the list of known hosts.
>>> xxx@localhost's password:
>>>

Mime
View raw message