mirror of
https://github.com/clearml/dropbear
synced 2025-02-12 07:25:30 +00:00
Keys with type sk-* make no sense as host keys, so they should be
disabled
This commit is contained in:
parent
2ad020ff30
commit
712d529164
@ -668,6 +668,12 @@ void load_all_hostkeys() {
|
||||
any_keys = 1;
|
||||
}
|
||||
#endif
|
||||
#if DROPBEAR_SK_ECDSA
|
||||
disablekey(DROPBEAR_SIGNKEY_SK_ECDSA);
|
||||
#endif
|
||||
#if DROPBEAR_SK_ED25519
|
||||
disablekey(DROPBEAR_SIGNKEY_SK_ED25519);
|
||||
#endif
|
||||
|
||||
if (!any_keys) {
|
||||
dropbear_exit("No hostkeys available. 'dropbear -R' may be useful or run dropbearkey.");
|
||||
|
Loading…
Reference in New Issue
Block a user