Hi Team
Trying to deploy code to new server with ssh, getting below error when i test the connection to remote server.
jenkins.plugins.publish_over.BapPublisherException: Failed to add SSH key. Message [invalid privatekey: [B@2d272efe]
In jennkins console log, i see below error:
SSH: Connecting from host [jenkins-server]
SSH: Connecting with configuration [remote server name] ...
SSH: Creating session: username [remote user], hostname [remote server], port [22]
SSH: Connecting session ...
ERROR: Exception when publishing, exception message [Failed to connect and initialize SSH connection. Message: [Failed to connect session for config [remote server name]. Message [Auth fail]]]
[Pipeline] sshPublisher
SSH: Current build result is [FAILURE], not going to run.
copied jenkins pub key to remote server.
Anybody can give me steps on how and what to do to deploy code to new server?
Jenkins is able to deploy to other already added existing servers.
Thanks and appreciate your help on this.