Hi Team
Recently an domain migration has happened.It changed from x to y.
When i try to check ssh connection getting auth fail.Error is pasted below
jenkins.plugins.publish_over.BapPublisherException: Failed to connect and initialize SSH connection. Message: [Failed to connect session for config [badlavserverUAT]. Message [Auth fail]].
Note: Telnet is able to reach from jenkins server to destination server.
2.ssh is configured using username and passoword.
would still recommend looking at the sshd logs on the target server. They’ll tell you a lot about why a login request was rejected. Its likely you pasted the wrong ssh keys into credentials
True. This advide was very helpfull. When I check remote_host logs I saw: “key type ssh-rsa not in PubkeyAcceptedAlgorithms”. After I create ssh-key in this way: ssh-keygen -t ecdsa -m PEM -f id_rsa3 - connect started working.
Looks like the issue was related to this topic: Ubuntu 22.04 SSH the RSA key isn’t working since upgrading from 20.04.