Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 355223 - >=net-misc/openssh-5.7: tell users to remove or fix their old ~/.ssh/known_hosts to use new (and default) ECDSA keys instead of RSA
Summary: >=net-misc/openssh-5.7: tell users to remove or fix their old ~/.ssh/known_ho...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-16 17:52 UTC by Pacho Ramos
Modified: 2011-02-19 18:40 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pacho Ramos gentoo-dev 2011-02-16 17:52:38 UTC
As talked with a OpenBSD developer, would be interesting if we could tell people to fix ~/.ssh/known_hosts for using ECDSA instead of RSA keys if possible as it's the current default (since 5.7 if I am not wrong) and is faster.

Currently, I have simply removed by ~/.ssh/known_hosts to use new keys on servers supporting them.

Thanks a lot :-)

Reproducible: Always
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2011-02-16 18:48:39 UTC
I would prefer not to simply tell users to remove the known_hosts... there is a reason why it's there and why the keys are not updated by default.
Comment 2 SpanKY gentoo-dev 2011-02-17 05:14:38 UTC
we can add an elog about updating their known_hosts, but that's about it.  one problem with ECDSA though is that it is disabled in openssl for bindists due to patent issues ... so those server/clients wont have it.
Comment 3 Pacho Ramos gentoo-dev 2011-02-17 07:59:53 UTC
I am fine with that solution, thanks
Comment 4 Christian Bricart 2011-02-18 11:47:13 UTC
(In reply to comment #2)
> we can add an elog about updating their known_hosts, but that's about it.

maybe some pointer to ssh-keyscan(1) should be in that elog:

one will find a practical example there:

+-
| Find all hosts from the file ssh_hosts which have 
| new or different keys from those in the sorted file ssh_known_hosts:
|   $ ssh-keyscan -t x509v3-sign-rsa,x509v3-sign-dss,rsa,dsa,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521 -f ssh_hosts | \
|             sort -u - ssh_known_hosts | diff ssh_known_hosts -
+-

Comment 6 Pacho Ramos gentoo-dev 2011-02-19 18:40:21 UTC
Thanks!