Cant connect to the remote server from jenkins using ssh key

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Cant connect to the remote server from jenkins using ssh key

sakshira...@gmail.com
How can i resolve below issue for ssh configuration for remote server to jenkins:

jenkins.plugins.publish_over.BapPublisherException: Failed to connect and initialize SSH connection. Message: [Failed to connect session for config [Remote Machine]. Message [Auth fail] 



I need to run a script on remote server from jenkins . 

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/f8a90fe5-3c64-4273-91f5-e3c6c2459642n%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: Cant connect to the remote server from jenkins using ssh key

jeremy mordkoff
You are positive the key works and that jenkns is ssh'ing as the right user? If so, can you check that the key is the only one offered? Finally, enable debug logs on the target's SSH server and look for the cause. 


On Tuesday, July 21, 2020 at 3:03:10 AM UTC-4, [hidden email] wrote:
How can i resolve below issue for ssh configuration for remote server to jenkins:

jenkins.plugins.publish_over.BapPublisherException: Failed to connect and initialize SSH connection. Message: [Failed to connect session for config [Remote Machine]. Message [Auth fail] 


i have added ssh key for connection as per <a href="https://linuxtechlab.com/how-to-easily-add-ssh-credentials-on-jenkins-server/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Flinuxtechlab.com%2Fhow-to-easily-add-ssh-credentials-on-jenkins-server%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFpz-hSrHdttGgjIelwhLqD3AgaJQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Flinuxtechlab.com%2Fhow-to-easily-add-ssh-credentials-on-jenkins-server%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFpz-hSrHdttGgjIelwhLqD3AgaJQ&#39;;return true;">https://linuxtechlab.com/how-to-easily-add-ssh-credentials-on-jenkins-server/

I need to run a script on remote server from jenkins . 

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/136d5114-db1f-41f0-b4fc-8e0e90352127o%40googlegroups.com.