After upgrading Jenkins due to security information, the ssh remote host connection is not working anymore. The credentials (private keys) were migrated based on a update of the ssh credentials plugin, but i always get "Can't connect to server" error. I also tried to delete the old credentials and create new ones but this does not work. Did anyone of you experience the same error after updating the plugins?
Jenkins Version: 2.129
SSH Credentials Plugin: 1.14
SSH plugin: 2.6.1
I had the same issue while integrating with SSH server. I followed the below steps:
ssh-keygen -f remote-ki -m PEM
- Make sure your private key should start with ------BEGIN RSA PRIVATE KEY------
instead of ------BEGIN OPENSSH PRIVATE KEY------
docker cp remote-ki jenkins:/tmp/remote-ki
docker-compose up --build
I hope this will work.