If you're not doing so already, try running the command line with "-i ~/.ssh/id_rsa". Your _private_ key should be passed in with the "-i" argument.
Also, double-check the "SSH Public Keys" field in your user config. For example, my public key listing looks like ssh-dss AAAAB3NzaC1kc3MAAACBAJPyRLf7S/L859k4T8KHhipHBVd/ltB1LarT9bNjzir7KByz7AdU695JKESNUCq7J+pY8lDR+XDyJfqKoHeAyKUaO1CIC1A9Y8x/8O5KzNCcXv1o6jXvUavStU+0cnqBvUqDN6IuD8AmZvVes0hiTgC13GWqr4I1TGkMKYfF+w6rAAAAFQDMf2dxqCozcc+tphCnaZZEjr6TgQAAAIAX8cZOidtaom026qEzjd2PD8CjlaHc2XtwdistKKAFUZG/6APNa3JW1PeJIYqB0HTIgXPCItODzHSeiQ4l4J+ZjviV4lDIJkUTjJdYtpw3MU2Exj53xo5SH4Q41L/HYnsq2P+mEuM8CuooEQKcAUXLRCAqGQENRKU0duZDjC2ovgAAAIBOLI6heodoIFB+/yQNw8dpsUBbgFzz2cryU5/79wzTAu9v6SXxnfwnPapzPekp+eBehFeA8XdoGsm9xCvonWWkH7LrLVzfRQ5e3km4zTxw78dcN6tLoGIXOkuVIgfW2iT6j78FAfBLhOVfXsyVWQeMPoXUtoLFO1wZH+amOnnERQ== rmandevi@L-rmandevi-ws490 If there are any lines decorating it, it may well fail. Note that on my page, "ssh-dss" does not show up as its own line (as it may in the email depending on line breaking rules). --Rob -----Original Message----- From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of Lewis, Eric Sent: Thursday, May 31, 2012 9:25 AM To: jenkinsci-users@googlegroups.com Subject: Dummy's guide to Jenkins CLI with authentication Hi I'm trying to use the Jenkins CLI, but I'm getting nowhere... We're using 1.460, and I did read https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+CLI but the crucial part about how to generate an SSH key pair is missing. My problem is that we have two different users: - The Linux user under which Jenkins is running - A build user which should have the right to run Jenkins CLI commands We use Active Directory and thus the AD plugin to authenticate. The build user exists in AD, but the Linux user doesn't. I tried to generate an SSH key pair using ssh-keygen, and it wrote the two key files into the ~/.ssh directory, but of course for the Linux user. I then logged in with the build user and set the public key of the Linux user into the text area (that's the content of the file ~/.ssh/id_rsa.pub, right?) But then I always get "Failed to authenticate with your SSH keys." I'm probably doing something terribly wrong :-) but I have no clue. Does anyone care to explain in simple steps what to do? Thanks & best regards, Eric The information in this message is for the intended recipient(s) only and may be the proprietary and/or confidential property of Litle & Co., LLC, and thus protected from disclosure. If you are not the intended recipient(s), or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any use, dissemination, distribution or copying of this communication is prohibited. If you have received this communication in error, please notify Litle & Co. immediately by replying to this message and then promptly deleting it and your reply permanently from your computer.