Issue Type: Bug Bug
Assignee: stephenconnolly
Components: ssh, ssh-agent, ssh-credentials, ssh-slaves
Created: 19/Apr/13 9:35 AM
Description:

I have a master running with user XXX on a machine M1. I want to run a slave on machine M2 with user YYY. I have a private-public key in place between the two machines so that I can do
[XXX@M1]$ ssh YYY@M2
and I am connected.

In Jenkins, I created credentials for username M2 and selected the option From the Jenkins master ~/.ssh. But when I try to connect it fails :

[04/18/13 14:58:11] [SSH] Opening SSH connection to M2:22.
ERROR: Failed to authenticate as YYY with credential=c2cdc4dd-cb39-4f15-8329-033933ad5621
java.io.IOException: Publickey authentication failed.

[04/18/13 14:58:11] [SSH] Authentication failed.
hudson.AbortException: Authentication failed.

Surprisingly, if I use the option Enter directly and copy paste the private key from ~/.ssh/id_dsa , then it works.

What am I doing wrong ? is it that it takes ~/.ssh/id_rsa instead of id_dsa ?

Environment: linux
Project: Jenkins
Labels: ssh
Priority: Major Major
Reporter: Barthélémy von Haller
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply via email to