On 11/17/2011 12:55 AM, Wenyi Gao wrote:
> On 2011年11月17日 10:43, Jongki Suwandi wrote:
>> How did you set up the authorized keys for both root and autotest
>> users on the remote machine? Did you just copy local autotest's public
>> key to remote autotest, and then copy local root's public key to
>> remote root? Does the remote root have local autotest's public key?
>>
>> -Jongki
>>
>>
>
>
> I just setup autotest's public key as follow:
>
> autotest@wayne-ThinkPad-T420:/home/wayne$ ssh-keygen -t dsa
> ssh-copy-id -i /home/autotest/.ssh/id_dsa.pub 172.16.3.130

Why not generate the key using the autotest user? Assuming 172.16.3.130 
is your client, from your server:

su - autotest
ssh-keygen -t dsa
ssh-copy-id [email protected]
type password, done

That would be your best bet. Then

ssh [email protected]

Should work without password, *unless* your ssh daemon forbids 
connecting to the machine as root, as Jongki said.
_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Reply via email to