jenkinsci / publish-over-ssh-plugin

https://plugins.jenkins.io/publish-over-ssh/
115 stars 150 forks source link

[JENKINS-20694] When attempting to connect to destination we receive: jenkins.plugins.publish_over.BapPublisherException: Failed to connect session for config [BETA Unix Server]. Message [Auth cancel] #181

Open jira-importer opened 10 years ago

jira-importer commented 10 years ago

Jenkins is running under user account X which has permissions and trusts our destination (in its knownhosts file). Using the command line, we are able to SSH/SCP/etc. to our destination host with that account but when attempting to orchestrate exactly the same connection via the Jenkins Publish over SSH plugin, we receive the error:

jenkins.plugins.publish_over.BapPublisherException: Failed to connect session for config [BETA Unix Server]. Message [Auth cancel]

I note that the failed login count on the destination increases.

We are not using public/private key here, just password but as mentioned, it works perfectly when performed manually on the cmd line.

Please could someone help us ascertain whether this is a bug or a problem with our setup?


Originally reported by matthewalder, imported from: When attempting to connect to destination we receive: jenkins.plugins.publish_over.BapPublisherException: Failed to connect session for config [BETA Unix Server]. Message [Auth cancel]
  • status: Reopened
  • priority: Major
  • resolution: Unresolved
  • imported: 2022/01/10
jira-importer commented 10 years ago

matthewalder:

Hey there, just wondering if there's any update on this one? Upon further investigation on our destinations logs, it appears that the plugin may be failing to provide the password despite the fact we have definitely entered this correctly in the settings and checked the relevant option.

jira-importer commented 6 years ago

slide_o_mix:

I can't reproduce this, is it still an issue (5 years on)?

jira-importer commented 5 years ago

km123:

The issue still exists. Can you please check? The Jenkins SSH plugin is working fine (https://wiki.jenkins.io/display/JENKINS/SSH+plugin). This is an issue while using plugin "Publish Over SSH" (https://wiki.jenkins.io/display/JENKINS/Publish+Over+SSH+Plugin) while using user id and password for authentication but authentication via key is working fine.  

jira-importer commented 5 years ago

km123:

Please reopen the issue as this still exists. 

jira-importer commented 5 years ago

slide_o_mix:

I can't reproduce this issue at all, so I have no way to debug it.

jira-importer commented 5 years ago

km123:

The issue was not happening until there was a BigFix change made for the remote hosts. Hope this can give some idea. 

jira-importer commented 5 years ago

slide_o_mix:

What version of the plugin are you using and what previous version worked?

jira-importer commented 5 years ago

km123:

I'm using the 1.20.1 version of plugin which was working fine so far.  There is no change in the plugin version. But there is a change on the remote host to which I'm doing ssh using this plugin. That remote host got patched with BigFix by our linux engineering team.  After the patch (BigFix- you can google it) upgrade on that remote linux box, the plugin is giving above error. When i do manually ssh to that remote box (from command line), it is working. But with plugin the connection test itself is failing. There is another jenkins plugin for ssh, it is called "SSH" (can be found at url https://wiki.jenkins.io/display/JENKINS/SSH+plugin) this plugin is working fine. I like "Publishing Over SSH" plugin over "SSH", because I can transfer files as well. hope this gives you enough details. 

 
jira-importer commented 5 years ago

slide_o_mix:

Please provide details on BigFix.

jira-importer commented 5 years ago

km123:

Here is the link which which can give you more details about what is done as part of BigFix on linux hosts: https://www.ibm.com/support/knowledgecenter/en/SS8JFY_9.2.0/com.ibm.lmt.doc/Inventory/planinconf/c_installing_bigfix_components_lin.html

Not sure if you can replicate this. This is mainly corporate mandates. Sorry I cannot help you much about it because BigFix is not part of my job. 

on another thought, is it possible to find what is the difference in the way "SSH" plugin is doing auth vs "Publish Over SSH"? Because "SSH" plugin is working fine while "Publish Over SSH" is failing with error mentioned in Screenshot.