iam trying to create a agent node in jenkins , but it was constantly showing this error

Viewed 19

i am trying to add an agent node in jenkins, using same java version on both controller and agent nodes, in host key verification strategy tried all four options available... now I am showing the error that arising when I am using "known host file verification strategy" in (Host key verification strategy.

log :

Warning: no key algorithms provided; JENKINS-42959 disabled
SSHLauncher{host='35.222.189.152', port=22, credentialsId='agent1', jvmOptions='', javaPath='', prefixStartSlaveCmd='', suffixStartSlaveCmd='', launchTimeoutSeconds=60, maxNumRetries=10, retryWaitTime=15, sshHostKeyVerificationStrategy=hudson.plugins.sshslaves.verifiers.KnownHostsFileKeyVerificationStrategy, tcpNoDelay=true, trackCredentials=true}
[09/05/22 17:56:18] [SSH] Opening SSH connection to 35.222.189.152:22.
Searching for 35.222.189.152 in /var/lib/jenkins/.ssh/known_hosts
Searching for 35.222.189.152:22 in /var/lib/jenkins/.ssh/known_hosts
[09/05/22 17:56:18] [SSH] SSH host key matches key in Known Hosts file. Connection will be allowed.
[09/05/22 17:56:18] [SSH] Authentication failed.
Authentication failed.
[09/05/22 17:56:18] Launch failed - cleaning up connection
[09/05/22 17:56:18] [SSH] Connection closed.

use any host key verification strategy options. it was finally showing "SSH host key matches key in Known Hosts file. Connection will be allowed. Authentication failed"  
0 Answers
Related