Generated new key ssh-keygen -t "ecdsa-sha2-nistp521" Error:
The connection could not be established! Check your settings and the Gerrit server. Gerrit Missed Events Playback is not supported. Verify if the connection has the REST API enabled and that the Gerrit Events-log plugin is installed and configured on the Gerrit Server. Jenkins System logs Oct 13, 2023 1:36:00 AM SEVERE com.sonymobile.tools.gerrit.gerritevents.GerritConnection connect Could not connect to Gerrit server! Host: gerrit Port: 29418 Oct 13, 2023 1:36:00 AM SEVERE com.sonymobile.tools.gerrit.gerritevents.GerritConnection connect Proxy: Oct 13, 2023 1:36:00 AM SEVERE com.sonymobile.tools.gerrit.gerritevents.GerritConnection connect User: jenkins.lgsi KeyFile: /home/jenkins/.ssh/id_rsa Oct 13, 2023 1:36:00 AM SEVERE com.sonymobile.tools.gerrit.gerritevents.GerritConnection connect IOException: com.jcraft.jsch.JSchException: Auth fail at com.jcraft.jsch.Session.connect(Session.java:519) at com.sonymobile.tools.gerrit.gerritevents.ssh.SshConnectionImpl.connect(SshConnectionImpl.java:196) Caused: com.sonymobile.tools.gerrit.gerritevents.ssh.SshException at com.sonymobile.tools.gerrit.gerritevents.ssh.SshConnectionImpl.connect(SshConnectionImpl.java:200) at com.sonymobile.tools.gerrit.gerritevents.ssh.SshConnectionFactory.getConnection(SshConnectionFactory.java:140) at com.sonymobile.tools.gerrit.gerritevents.ssh.SshConnectionFactory.getConnection(SshConnectionFactory.java:117) at com.sonymobile.tools.gerrit.gerritevents.GerritConnection.connect(GerritConnection.java:498) at com.sonymobile.tools.gerrit.gerritevents.GerritConnection.run(GerritConnection.java:404) On Thu, Oct 12, 2023 at 2:18 PM 'Maciej Jaros' via Jenkins Users < jenkinsci-users@googlegroups.com> wrote: > praveen....@gmail.com (2023-10-11 06:40): > > We are setting up gerrit trigger in jenkins & getting id_rsa" is not a > > valid key file error > > Verified the file permission > > drwx------ 2 xxxxx xxxxxx 4.0K Oct 11 04:39 .ssh > > -rw------- 1 xxxxx xxxxxx 2.6K Oct 11 04:23 id_rsa -- > > That key seems a bit short for RSA, maybe jenkins-gerrit requires longer > one? > > Another option I would see is that the client is old and will not be > able to use RSA at all. OpenSSH 8.8 disables RSA using SHA-1 and so you > might need to use ECDSA key. ECDSA might work in clients as far back as > in OpenSSH 5.x and be able to connect event to OpenSSH 9.x based servers. > > So you might want to generate a new key (and configure the key with > gerrit): > ssh-keygen -t "ecdsa-sha2-nistp521" > > Regards, > Maciej Nux. > > -- > 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 jenkinsci-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-users/aac8bd13-13da-e90e-fe7a-9bb83c1e19c7%40mol.com.pl > . > -- Praveen M 9986069592 -- 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 jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CA%2BwMND6ocEb2kJdnZbP9e%3Dsosfy5YUoKsVeEByxykc8xOEs5aA%40mail.gmail.com.