Cant connect to the remote server from jenkins using ssh key

2,450 views
Skip to first unread message

sakshira...@gmail.com

unread,
Jul 21, 2020, 3:03:10 AM7/21/20
to Jenkins Users
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 . 

jeremy mordkoff

unread,
Jul 21, 2020, 11:56:55 AM7/21/20
to Jenkins Users
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. 
Reply all
Reply to author
Forward
0 new messages