-
Notifications
You must be signed in to change notification settings - Fork 150
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
Plugin is not seeing settings in my config file #308
Comments
Hi, faced exact the same problem. but from my knowledge publish over ssh is working from controller node, not from worker node. also it is Java ssh implementation so I will check now if it respects .ssh configs |
@ZillaG try perform this on your controller in Script Console: import com.jcraft.jsch.JSch
JSch.setConfig("server_host_key", JSch.getConfig("server_host_key") + ",ssh-rsa")
JSch.setConfig("PubkeyAcceptedAlgorithms", JSch.getConfig("PubkeyAcceptedAlgorithms") + ",ssh-rsa") this is from https://github.com/mwiede/jsch |
on my 2.401.1 before it, it complains about unsupported ssh-rsa protocol. |
to persist it : add to your controller jenkins start
|
我的天,非常感谢你。我为这个问题找了两天的资料,非常感谢你。我将它设置在tomcat/bin/catalina.sh 中。 |
Note the supplied flags work on controller when using the built in agent, but if you want to use remote ssh agents, you need to go into each ssh agents config and set the jvm options for the -Djsch flags there too. |
Jenkins and plugins versions report
Environment
I have the following simple pipeline to test this pluginI have the following
~/.ssh/config
file setup up for the user that's running the pipelineBut I'm still getting the following
What Operating System are you using (both controller, and any agents involved in the problem)?
Jenkins master: Linux jenkins.company.com 4.15.0-211-generic #222-Ubuntu SMP Tue Apr 18 18:55:06 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Jenkins Build node: Windows Server 2016 Standard
Reproduction steps
~/.ssh/authorized_keys
file to contain a valid public ssh key~/.ssh/config
fileExpected Results
Should be able to use the plugin to publish over ssh
Actual Results
I get this error
Anything else?
No response
The text was updated successfully, but these errors were encountered: