Connection error while setting up a master / Slave in Jenkins using an AWS EC2 instances.

165 views
Skip to first unread message

Deep

unread,
Feb 4, 2018, 5:27:06 PM2/4/18
to Jenkins Users
Hi There,

I am trying to set up a master / Slave in Jenkins using an AWS EC2 instances. I have created an shh-keygen and copied contents of an id_rsa.pub file in slave's .ssh/authorized_keys.
When I am trying to add node (slave node) using Master's .ssh key configuration, the connection is getting failed with the error below. Is there any expert can help me?

[02/04/18 20:52:58] [SSH] Opening SSH connection to 37.178.39.69:22.
Connection timed out (Connection timed out)
SSH Connection failed with IOException: "Connection timed out (Connection timed out)".
java.io.IOException: There was a problem while connecting to 37.178.39.69:22
	at com.trilead.ssh2.Connection.connect(Connection.java:834)
	at hudson.plugins.sshslaves.SSHLauncher.openConnection(SSHLauncher.java:1313)
	at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:821)
	at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:810)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)
Caused by: java.net.ConnectException: Connection timed out (Connection timed out)
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
	at java.net.Socket.connect(Socket.java:589)
	at com.trilead.ssh2.transport.TransportManager.establishConnection(TransportManager.java:367)
	at com.trilead.ssh2.transport.TransportManager.initialize(TransportManager.java:480)
	at com.trilead.ssh2.Connection.connect(Connection.java:774)


Reply all
Reply to author
Forward
0 new messages