Hi Jonathan

Thanks for your reply. You wrote:

... If they're not using public key authentication, they must be using a 
different mechanism, like passwords.

The existing slaves aren't using public key authentication so they must be 
using passwords.  How would password authentication normally be set up to work 
in Jenkins?

David

From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of JonathanRRogers
Sent: 20 March 2013 16:41
To: jenkinsci-users@googlegroups.com
Cc: David Aldrich
Subject: Re: How to connect to a Linux slave?



On Wednesday, March 20, 2013 9:47:32 AM UTC-4, David Aldrich wrote:
Hi

We have a Linux Jenkins master that connects to many Jenkins slaves that run 
Centos 5.  I am trying to add a Ubuntu 12.04 slave but I get an error:

[03/20/13 13:44:31] [SSH] Opening SSH connection to t4:22.
java.io.IOException: There was a problem while connecting to t4:22
        at com.trilead.ssh2.Connection.connect(Connection.java:793)
        at com.trilead.ssh2.Connection.connect(Connection.java:565)

I have reviewed the Jenkins documentation for connecting to slaves and I notice 
it says:


>  Note that the slave will need the master's public ssh key copied to 
> ~/.ssh/authorized_keys.

I don't recall doing this for the other slaves, and they have no .pub files.

Do I need to copy the SSH key from the master to the slave?
 You need to configure the ssh client on the Jenkins machine to authenticate to 
the ssh server on the slave machine. How did you do this for the working 
slaves? If they're not using public key authentication, they must be using a 
different mechanism, like passwords. First, figure out how to log into the 
slave directly by running ssh as the Jenkins user. Here's a HOWTO for 
configuring public key authentication. There are numerous other HOWTOs out 
there and little, if any, of this is specific to an operating system. You don't 
want to set a passphrase on the private key used to authenticate to a Jenkins 
slave.

<URL:https://help.ubuntu.com/community/SSH/OpenSSH/Keys>
--
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
jenkinsci-users+unsubscr...@googlegroups.com<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
For more options, visit https://groups.google.com/groups/opt_out.




Click 
here<https://www.mailcontrol.com/sr/CCyHKJppVpDGX2PQPOmvUkjDae7bB5IgSsdX9nxVD1dBwgcyXt8raDy8JGRt0uxDXeCWFTId+SmSPFO0UaI8cQ==>
 to report this email as spam.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to