Is it mandatory to have the 'jenkins' user on slave as well? I have it only 
on Master. 

But the question is why is it working through UI and not from the command 
line? Is there anyone who can help please?

Thanks.

On Monday, October 8, 2012 6:25:10 PM UTC+5:30, sandy wrote:
>
> Is there any difference in the authentication for UI and Command line?
>
> I'm using Jenkins version 1.483.
>
> On Monday, October 8, 2012 3:16:43 PM UTC+5:30, sandy wrote:
>>
>> I have setup Jenkins master on Linux. The service is owned by user 
>> 'jenkins'. I added one slave node (Mac OS X) and assigned a job to it. The 
>> build on this slave node is run by user 'buildfarm'. I have established 
>> passwordless ssh between master and slave for user 'jenkins', which now can 
>> ssh to slave using 'buildfarm' user without giving password. When I execute 
>> build through UI, the build is properly done.
>>
>> Now, I was trying to build using command line on the master. and I see 
>> the following error:
>>
>> $ id
>> uid=1006(jenkins) gid=1006(jenkins) groups=1006(jenkins)
>>
>> $ java -jar jenkins-cli.jar -s http://localhost:8080/ help
>> Failed to authenticate with your SSH keys.
>>
>> $ java -jar jenkins-cli.jar -s http://localhost:8080/ -i 
>> /home/jenkins/.ssh/id_dsa help
>> Authentication failed. No private key accepted.
>>
>>
>>
>>
>>

Reply via email to