From 32a34b07a4e25f194891c3e738037633cb9ca1b4 Mon Sep 17 00:00:00 2001 From: unle4rn Date: Sat, 6 Jun 2026 17:31:10 -0400 Subject: [PATCH] fix(net_ssh): use filename parameter instead of hardcoded RSA path in bind_key bind_key() was always passing KEYS_FOLDER "ssh_host_rsa_key" to ssh_bind_options_set() regardless of which key type was being bound. This caused net_ssh to fail to start on systems with only ed25519 (or ecdsa/dsa) keys and no RSA key present. --- nets/net_ssh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nets/net_ssh.c b/nets/net_ssh.c index 27cb49f8..a73843b7 100644 --- a/nets/net_ssh.c +++ b/nets/net_ssh.c @@ -109,7 +109,7 @@ static int bind_key(enum ssh_bind_options_e opt, const char *filename) bbs_warning("Can't access key %s - missing or not readable?\n", filename); return 0; } - return ssh_bind_options_set(sshbind, opt, KEYS_FOLDER "ssh_host_rsa_key") ? 0 : 1; + return ssh_bind_options_set(sshbind, opt, filename) ? 0 : 1; } static int start_ssh(void)