Issue with SSH host key

539 views
Skip to first unread message

zafar shamim

unread,
Aug 24, 2017, 10:22:06 AM8/24/17
to Repo and Gerrit Discussion

Recently I upgraded Gerrit from 2.12.3 to 2.14.2.

The service is running fine ,but I observed following warnings in catalina-daemon.out

 

Logs:

 

[sshd-SshServer[467fb7a9]-nio2-thread-1] WARN  org.apache.sshd.common.keyprovider.FileKeyPairProvider : Failed (StreamCorruptedException) to load key resource=/home/gerritsb/gerrit/etc/ssh_host_ecdsa_key: Invalid DER: object is not an OID: SEQUENCE

[sshd-SshServer[467fb7a9]-nio2-thread-1] WARN  org.apache.sshd.common.keyprovider.FileKeyPairProvider : Failed (StreamCorruptedException) to load key resource=/home/gerritsb/gerrit/etc/ssh_host_ecdsa_384_key: Invalid DER: object is not an OID: SEQUENCE

[sshd-SshServer[467fb7a9]-nio2-thread-1] WARN  org.apache.sshd.common.keyprovider.FileKeyPairProvider : Failed (StreamCorruptedException) to load key resource=/home/gerritsb/gerrit/etc/ssh_host_ecdsa_521_key: Invalid DER: object is not an OID: SEQUENCE

 

 

While upgrading following keys got created under Gerrit/etc

 

ssh_host_ecdsa_key.pub

ssh_host_ecdsa_key

ssh_host_ecdsa_384_key.pub

ssh_host_ecdsa_384_key

ssh_host_ecdsa_521_key

ssh_host_ecdsa_521_key.pub

 

I am not sure how to fix this warning, any pointer would be a great help

 

Thanks

Zafar

VM

unread,
Sep 23, 2017, 8:36:59 AM9/23/17
to Repo and Gerrit Discussion
Hi list,

I have the same issue.
I tried to replaced the keys with newly generated one with no success : still the same message (even with 2.14.4).

Any tips ?

Regards,
VM

Sheng Zou

unread,
Sep 24, 2017, 9:14:29 PM9/24/17
to Repo and Gerrit Discussion
I saw the same issue. Gerrit version is 2.14.2.

euni...@gmail.com

unread,
Oct 1, 2017, 12:18:45 AM10/1/17
to Repo and Gerrit Discussion
Hi guys

I have the same issue.(2.14.4)
Is there any solution??

Thank you

Fabio Porcedda

unread,
Mar 6, 2018, 6:22:58 AM3/6/18
to Repo and Gerrit Discussion


Il giorno domenica 1 ottobre 2017 06:18:45 UTC+2, euni...@gmail.com ha scritto:
Hi guys

I have the same issue.(2.14.4)
Is there any solution??

I've the same issue after upgrading from 2.3.9 to 2.14.6.
Is there any solution?

Thanks

rj

unread,
Jun 6, 2019, 8:02:37 PM6/6/19
to Repo and Gerrit Discussion

 Hello ,

     Any one able to find a solution for this issue . Observe same issue after upgrading from 2.12 -> 2.16

kamal gumparthi

unread,
Jun 14, 2019, 7:06:04 AM6/14/19
to Repo and Gerrit Discussion
Hi,

During upgradation process to 2.14.4, You might have identified strange warnings in log file and also having created other ssh_host_* keys under <Home/etc/>. Do you have below keys before and after upgration? If so then delete all other keys and restart gerrit services.

ssh_host_rsa_key.pub
ssh_host_rsa_key
Reply all
Reply to author
Forward
0 new messages