# \[SOLVED\] KeyError fix

**URL:** <https://discourse.pijul.org/t/solved-keyerror-fix/265>\
**Category:** Development\
**Created:** [January 17, 2019, 12:57pm UTC](https://discourse.pijul.org/t/solved-keyerror-fix/265 "2019-01-17T12:57:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![az8](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.pijul.org/az8/32/137_2.png) [@az8](https://discourse.pijul.org/u/az8)\
**Post date:** [January 17, 2019, 12:57pm UTC](https://discourse.pijul.org/t/solved-keyerror-fix/265/1 "2019-01-17T12:57:20Z")

</div>

Having complained here about a CouldNotReadKey bug over a year ago I finally found the time to dive in and figure out what was going wrong.

My server has three keys. rsa , ecdsa and ed25519 . When connecting for the first time you are asked to confirm the identity of the ‘first key’ and ecdsa has precedence over ed25519, which is saved in your ~/.ssh/known\_hosts file.

Then when pijul checks your known\_hosts file it will find the ecdsa signature and bugs out with only the CouldNotReadKey msg.

My quick fix was to drop my ecdsa, but seeing how this stopped me from using pijul for over a year , something should probably be improved somewhere 🙂

---

<div class="post-metadata">

**Author:** ![flobec](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.pijul.org/flobec/32/23_2.png) [@flobec](https://discourse.pijul.org/u/flobec)\
**Post date:** [January 17, 2019, 1:50pm UTC](https://discourse.pijul.org/t/solved-keyerror-fix/265/2 "2019-01-17T13:50:51Z")

</div>

Thanks for the report.

---

<div class="post-metadata">

**Author:** ![pmeunier](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.pijul.org/pmeunier/32/4_2.png) [@pmeunier](https://discourse.pijul.org/u/pmeunier)\
**Post date:** [February 23, 2019, 11:20pm UTC](https://discourse.pijul.org/t/solved-keyerror-fix/265/3 "2019-02-23T23:20:51Z")

</div>

So, you’re not the first one to complain about the lack of support for ECDSA. There is a substantial cost, and possibly future technical debt, to implementing all possible crypto primitives in Thrussh.

What is the advantage of ECDSA over alternatives? Is there a good reason to use it?
