-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
jenkins.plugins.publish_over.BapPublisherException: Failed to connect and initialize SSH connection. Message: [Failed to connect session for config [ansible]. Message [Auth fail for methods 'publickey,gssapi-keyex,gssapi-with-mic,password']] #312
Comments
The same for me. sshd error: |
Same issue. I'm running on official (jenkins/jenkins:lts) docker image.
|
I'm having the same issue. Is there a solution or a work-around? |
jenkins.plugins.publish_over.BapPublisherException: Failed to connect and initialize SSH connection. Message: [Failed to connect session for config [BPM]. Message [Auth fail for methods 'publickey,gssapi-keyex,gssapi-with-mic,password']] don't upgrade jenkins !!! |
Hi, faced the same issue, with simple java program that uses new jsch library i found that order of client protocol for ssh-rsa maters you can try add it to the beginning of allowed algorithm
|
but with jenkins remember htat this need to be set via JVM_OPTS. -Djsch.client_pubkey=ssh-rsa,ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,rsa-sha2-512,rsa-sha2-256 -Djsch.server_host_key=ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,rsa-sha2-512,rsa-sha2-256,ssh-rsa to update this option on fly in script console you can run :
|
Thank you. |
This duplicates #308 although the description isn't as clear there. |
Incase anyone else runs into it with the supplied workarounds, trying to set the workaround jvm opts, you must pass these to your agents individually too, or use the built in agent to get the flags on the controller. |
@aikar can you please explain what do you mean ? |
Can you elaborate in how to do this? |
Jenkins and plugins versions report
Environment
What Operating System are you using (both controller, and any agents involved in the problem)?
AMAZON AMI 2
Reproduction steps
DEPLOYED OVER SSH BUT AFTER SOME TIME IT DOESNT WORK
Expected Results
NOT WORKING
Actual Results
DISSCONNECTED
Anything else?
No response
The text was updated successfully, but these errors were encountered: