I understand you have a Jenkins instance that runs on a windows machine and you want to use a Linux machine as an agent connected by SSH * Create an SSH key pair (public/private) * Create an SSH credential in the Jenkins machine and put the private key there * Create an SSH agent see https://github.com/jenkinsci/ssh-slaves-plugin/blob/master/doc/CONFIGURE.md#configure-launch-agents-via-ssh * Select the SSH credential created before as credentials * Chose the verification strategy that you want, see the documentation, if you have problems start with the "Non verifying Verification Strategy" you can change it later * Add the public key on ~/.ssh/authorized_keys
this should work, if not you should see some error messages on the agent logs page "JENKISN_URL/computer/AGENT_NAME/log", if nothing works see https://github.com/jenkinsci/ssh-slaves-plugin/blob/master/doc/TROUBLESHOOTING.md#common-info-needed-to-troubleshooting-a-bug there you have the information needed to troubleshoot an SSH issue El martes, 4 de febrero de 2020, 21:53:45 (UTC+1), Sholom Sanders escribió: > > On my remote Linux machine I created a private/public key to communicate > with Jenkins on my Windows machine. I put the public key into > authorized_keys. In Jenkins, I created a credential for this user and > pasted in the private key. I then went to Manage Jenkins --> Configure > System to the SSH Remote Hosts. I created a new one with the Linux machine > name and port 22 and selected the newly created credential. When I click on > check connection, I am getting "Can't connect to server". I had created > two other SSH remote hosts successfully. But this lone is not going through > and I am not sure how to track down the solution. > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/72ae6f7e-fa54-4be5-add3-9337d70835d4%40googlegroups.com.
